Nukkit 1.1 Fix

This commit is contained in:
Goodstuff4UonYT 2017-06-08 23:07:59 +02:00
parent 6554370b57
commit 7b9e14c7f5

View File

@ -76,7 +76,7 @@ public class BrushListener implements Listener {
public void onPlayerInteract(final PlayerInteractEvent event) { public void onPlayerInteract(final PlayerInteractEvent event) {
Player nukkitPlayer = event.getPlayer(); Player nukkitPlayer = event.getPlayer();
if (nukkitPlayer.isSneaking()) { if (nukkitPlayer.isSneaking()) {
if (event.getAction() == PlayerInteractEvent.PHYSICAL) { if (event.getAction() == PlayerInteractEvent.Action.PHYSICAL) {
return; return;
} }
FawePlayer<Object> fp = FawePlayer.wrap(nukkitPlayer); FawePlayer<Object> fp = FawePlayer.wrap(nukkitPlayer);