diff --git a/nms-patches/BlockCauldron.patch b/nms-patches/BlockCauldron.patch index 110e170d0d..716766ba7d 100644 --- a/nms-patches/BlockCauldron.patch +++ b/nms-patches/BlockCauldron.patch @@ -120,7 +120,7 @@ + int newLevel = Integer.valueOf(MathHelper.clamp(i, 0, 3)); + CauldronLevelChangeEvent event = new CauldronLevelChangeEvent( + world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ()), -+ entity.getBukkitEntity(), reason, iblockdata.get(BlockCauldron.LEVEL), newLevel ++ (entity == null) ? null : entity.getBukkitEntity(), reason, iblockdata.get(BlockCauldron.LEVEL), newLevel + ); + world.getServer().getPluginManager().callEvent(event); + if (event.isCancelled()) {