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
|
|
|
|
2019-04-23 04:00:00 +02:00
|
|
|
public EntityPainting(EntityTypes<? extends EntityPainting> entitytypes, World world) {
|
|
|
|
super(entitytypes, world);
|
2018-07-15 02:00:00 +02:00
|
|
|
+ // CraftBukkit start - generate a non-null painting
|
2018-12-25 22:00:00 +01:00
|
|
|
+ List<Paintings> list = Lists.newArrayList(Paintings.a);
|
|
|
|
+ this.art = (Paintings) list.get(this.random.nextInt(list.size()));
|
2018-07-15 02:00:00 +02:00
|
|
|
+ // CraftBukkit end
|
2014-11-25 22:32:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public EntityPainting(World world, BlockPosition blockposition, EnumDirection enumdirection) {
|