mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 07:48:53 +01:00
13 lines
583 B
Diff
13 lines
583 B
Diff
--- a/net/minecraft/server/EntityPainting.java
|
|
+++ b/net/minecraft/server/EntityPainting.java
|
|
@@ -11,6 +11,10 @@
|
|
|
|
public EntityPainting(EntityTypes<? extends EntityPainting> entitytypes, World world) {
|
|
super(entitytypes, world);
|
|
+ // CraftBukkit start - generate a non-null painting
|
|
+ List<Paintings> list = Lists.newArrayList(Paintings.a);
|
|
+ this.art = (Paintings) list.get(this.random.nextInt(list.size()));
|
|
+ // CraftBukkit end
|
|
}
|
|
|
|
public EntityPainting(World world, BlockPosition blockposition, EnumDirection enumdirection) {
|