summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityPainting.patch
blob: 7c698b4f44af349368807231d07f1d6f61c80038 (plain)
1
2
3
4
5
6
7
8
9
10
--- ../work/decompile-bb26c12b/net/minecraft/server/EntityPainting.java	2014-11-27 08:59:46.717421776 +1100
+++ src/main/java/net/minecraft/server/EntityPainting.java	2014-11-27 08:42:10.132850949 +1100
@@ -9,6 +9,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) {