mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 17:22:55 +01:00
SPIGOT-1596: BlockCauldron crash
By: md_5 <git@md-5.net>
This commit is contained in:
parent
c964d0499b
commit
849f9f08b0
1 changed files with 1 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue