3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2025-01-11 15:40:51 +01:00
Paper/nms-patches/EntityPainting.patch

14 Zeilen
583 B
Diff

2015-05-25 20:37:24 +10:00
--- a/net/minecraft/server/EntityPainting.java
+++ b/net/minecraft/server/EntityPainting.java
2018-07-15 10:00:00 +10:00
@@ -11,6 +11,10 @@
2019-04-23 12:00:00 +10:00
public EntityPainting(EntityTypes<? extends EntityPainting> entitytypes, World world) {
super(entitytypes, world);
2018-07-15 10:00:00 +10:00
+ // CraftBukkit start - generate a non-null painting
2018-12-26 08:00:00 +11:00
+ List<Paintings> list = Lists.newArrayList(Paintings.a);
+ this.art = (Paintings) list.get(this.random.nextInt(list.size()));
2018-07-15 10:00:00 +10:00
+ // CraftBukkit end
}
public EntityPainting(World world, BlockPosition blockposition, EnumDirection enumdirection) {