Fix merge issue

This commit is contained in:
dordsor21 2020-12-11 11:42:19 +00:00
parent 18f13b7d15
commit 6eb2958afc
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -1130,7 +1130,7 @@ public class PlayerEventListener extends PlotListener implements Listener {
if (!(placed instanceof Boat)) { if (!(placed instanceof Boat)) {
return; return;
} }
BukkitPlayer pp = BukkitUtil.getPlayer(player); BukkitPlayer pp = BukkitUtil.adapt(event.getPlayer());
PlotArea area = pp.getPlotAreaAbs(); PlotArea area = pp.getPlotAreaAbs();
if (area == null) { if (area == null) {
return; return;
@ -1138,7 +1138,7 @@ public class PlayerEventListener extends PlotListener implements Listener {
PlayerBlockEventType eventType = PlayerBlockEventType.PLACE_VEHICLE; PlayerBlockEventType eventType = PlayerBlockEventType.PLACE_VEHICLE;
Block block = event.getBlock(); Block block = event.getBlock();
BlockType blockType = BukkitAdapter.asBlockType(block.getType()); BlockType blockType = BukkitAdapter.asBlockType(block.getType());
Location location = BukkitUtil.getLocation(block.getLocation()); Location location = BukkitUtil.adapt(block.getLocation());
if (!PlotSquared.get().getEventDispatcher() if (!PlotSquared.get().getEventDispatcher()
.checkPlayerBlockEvent(pp, eventType, location, blockType, true)) { .checkPlayerBlockEvent(pp, eventType, location, blockType, true)) {
event.setCancelled(true); event.setCancelled(true);