PaperMC/paper-server/nms-patches/TileEntityBanner.patch
CraftBukkit/Spigot a0f2b74c8d Update to Minecraft 1.14-pre5
By: md_5 <git@md-5.net>
2019-04-23 12:00:00 +10:00

14 lines
420 B
Diff

--- a/net/minecraft/server/TileEntityBanner.java
+++ b/net/minecraft/server/TileEntityBanner.java
@@ -67,6 +67,11 @@
}
this.patterns = nbttagcompound.getList("Patterns", 10);
+ // CraftBukkit start
+ while (this.patterns.size() > 20) {
+ this.patterns.remove(20);
+ }
+ // CraftBukkit end
this.h = null;
this.i = null;
this.j = null;