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

Merge pull request #944 from BluGhostYT/master

Switch boolean allow = true; to false
This commit is contained in:
TheBusyBiscuit 2019-06-21 15:22:51 +02:00 committed by GitHub
commit 8f173ea76c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2102,7 +2102,7 @@ public class SlimefunSetup {
if (SlimefunStartup.instance.isCoreProtectInstalled()) SlimefunStartup.instance.getCoreProtectAPI().logRemoval(e.getPlayer().getName(), b.getLocation(), b.getType(), b.getBlockData());
b.getWorld().playEffect(b.getLocation(), Effect.STEP_SOUND, b.getType());
SlimefunItem sfItem = BlockStorage.check(b);
boolean allow = true;
boolean allow = false;
if (sfItem != null && !(sfItem instanceof HandledBlock)) {
if (SlimefunItem.blockhandler.containsKey(sfItem.getID())) {
allow = SlimefunItem.blockhandler.get(sfItem.getID()).onBreak(e.getPlayer(), e.getBlock(), sfItem, UnregisterReason.PLAYER_BREAK);