Wrong way oops

This commit is contained in:
Myles 2016-03-26 22:22:19 +00:00
parent cee5b1ee42
commit c5f72dc728

View File

@ -29,7 +29,7 @@ public class PaperPatch implements Listener {
if (e.getPlayer().getLocation().getBlock().equals(e.getBlock())) {
e.setCancelled(true);
} else {
if (e.getPlayer().getLocation().getBlock().getRelative(BlockFace.DOWN).equals(e.getBlock())) {
if (e.getPlayer().getLocation().getBlock().getRelative(BlockFace.UP).equals(e.getBlock())) {
e.setCancelled(true);
}
}