13
0
geforkt von Mirrors/Paper

CauldronLevelChangeEvent does not use new level

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2018-01-08 13:42:41 +11:00
Ursprung ce71ef0f33
Commit c3ccbeb17d

Datei anzeigen

@ -157,7 +157,7 @@
+ if (event.isCancelled()) { + if (event.isCancelled()) {
+ return false; + return false;
+ } + }
+ world.setTypeAndData(blockposition, iblockdata.set(BlockCauldron.LEVEL, newLevel), 2); + world.setTypeAndData(blockposition, iblockdata.set(BlockCauldron.LEVEL, event.getNewLevel()), 2);
world.updateAdjacentComparators(blockposition, this); world.updateAdjacentComparators(blockposition, this);
+ return true; + return true;
+ // CraftBukkit end + // CraftBukkit end