summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityPainting.patch
blob: 06269bbb4da3967e9f746577eecd3c86e12c459f (plain)
1
2
3
4
5
6
7
8
9
10
--- a/net/minecraft/server/EntityPainting.java
+++ b/net/minecraft/server/EntityPainting.java
@@ -11,6 +11,7 @@
 
     public EntityPainting(World world) {
         super(world);
+        this.art = EnumArt.values()[this.random.nextInt(EnumArt.values().length)]; // CraftBukkit - generate a non-null painting
     }
 
     public EntityPainting(World world, BlockPosition blockposition, EnumDirection enumdirection) {