3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 20:40:08 +01:00

Fix NPE when blowing up an item frame. Fixes BUKKIT-2763

Dieser Commit ist enthalten in:
Travis Watkins 2012-10-31 11:30:29 -05:00 committet von EvilSeph
Ursprung f479aa84a4
Commit 347fd3cb6e

Datei anzeigen

@ -226,7 +226,7 @@ public abstract class EntityHanging extends Entity {
this.world.getServer().getPluginManager().callEvent(paintingEvent);
}
if (dead || event.isCancelled() || (paintingEvent != null && paintingEvent.isCancelled())) {
if (dead || (event != null && event.isCancelled()) || (paintingEvent != null && paintingEvent.isCancelled())) {
return true;
}
// CraftBukkit end