2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/EntityPainting.java
|
|
|
|
+++ b/net/minecraft/server/EntityPainting.java
|
2018-07-15 02:00:00 +02:00
|
|
|
@@ -11,6 +11,10 @@
|
2014-11-25 22:32:16 +01:00
|
|
|
|
|
|
|
public EntityPainting(World world) {
|
2018-07-15 02:00:00 +02:00
|
|
|
super(EntityTypes.PAINTING, world);
|
|
|
|
+ // CraftBukkit start - generate a non-null painting
|
|
|
|
+ ArrayList arraylist = Lists.newArrayList(Paintings.a);
|
|
|
|
+ this.art = (Paintings) arraylist.get(this.random.nextInt(arraylist.size()));
|
|
|
|
+ // CraftBukkit end
|
2014-11-25 22:32:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public EntityPainting(World world, BlockPosition blockposition, EnumDirection enumdirection) {
|