Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
SPIGOT-1596: BlockCauldron crash
Dieser Commit ist enthalten in:
Ursprung
0f297b39be
Commit
7c2b0ab69e
@ -120,7 +120,7 @@
|
|||||||
+ int newLevel = Integer.valueOf(MathHelper.clamp(i, 0, 3));
|
+ int newLevel = Integer.valueOf(MathHelper.clamp(i, 0, 3));
|
||||||
+ CauldronLevelChangeEvent event = new CauldronLevelChangeEvent(
|
+ CauldronLevelChangeEvent event = new CauldronLevelChangeEvent(
|
||||||
+ world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ()),
|
+ 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);
|
+ world.getServer().getPluginManager().callEvent(event);
|
||||||
+ if (event.isCancelled()) {
|
+ if (event.isCancelled()) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren