1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Added parameters to EventHandler

This commit is contained in:
Redemption 2017-11-25 13:31:13 +01:00 committed by GitHub
parent 3fcfadb189
commit 229dca3766
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -180,9 +180,8 @@ public class AncientAltarListener implements Listener {
} }
} }
@EventHandler @EventHandler (priority = EventPriority.HIGHEST, ignoreCancelled = true)
public void onBlockPlace(BlockPlaceEvent e) { public void onBlockPlace(BlockPlaceEvent e) {
if(e.isCancelled()) return;
Block b = e.getBlockPlaced().getRelative(0, -1, 0); Block b = e.getBlockPlaced().getRelative(0, -1, 0);
SlimefunItem item = BlockStorage.check(b); SlimefunItem item = BlockStorage.check(b);
if(item == null) return; if(item == null) return;