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

fixed painting NPE

Dieser Commit ist enthalten in:
Tahg 2011-04-26 15:39:25 -04:00
Ursprung 6711975658
Commit b075a58657

Datei anzeigen

@ -206,7 +206,7 @@ public class EntityPainting extends Entity {
// CraftBukkit start
Painting painting = (Painting) getBukkitEntity();
PaintingBreakByEntityEvent event = new PaintingBreakByEntityEvent(painting,entity.getBukkitEntity());
PaintingBreakByEntityEvent event = new PaintingBreakByEntityEvent(painting, entity == null ? null : entity.getBukkitEntity());
Bukkit.getServer().getPluginManager().callEvent(event);
if (event.isCancelled()) {
return true;