Fix rapid extraction in survival mode
@@ -56,11 +56,13 @@ public class CommonProxy
BlockState state = event.getWorld().getBlockState(pos);
Block block = state.getBlock();
if (block instanceof BlockDrawers) {
+ if (event.getPlayer().isCreative()) {
if (!((BlockDrawers) block).creativeCanBreakBlock(state, event.getWorld(), pos, event.getPlayer())) {
state.onBlockClicked(event.getWorld(), pos, event.getPlayer());
event.setCanceled(true);
}
}
+ }
//}
}
