PaperMC/paper-server/nms-patches/EntityPainting.patch
CraftBukkit/Spigot 2443e912f8 Fix eating food whilst not facing a block
By: Thinkofdeath <thinkofdeath@spigotmc.org>
2014-11-28 11:23:19 +00:00

10 lines
526 B
Diff

--- ../work/decompile-8eb82bde//net/minecraft/server/EntityPainting.java 2014-11-28 11:22:55.962823162 +0000
+++ src/main/java/net/minecraft/server/EntityPainting.java 2014-11-28 11:01:54.000000000 +0000
@@ -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) {