PaperMC/nms-patches/TileEntityBanner.patch

15 lines
420 B
Diff
Raw Normal View History

--- a/net/minecraft/server/TileEntityBanner.java
+++ b/net/minecraft/server/TileEntityBanner.java
2019-12-10 23:00:00 +01:00
@@ -69,6 +69,11 @@
2018-07-15 02:00:00 +02:00
}
2016-11-17 02:41:03 +01:00
this.patterns = nbttagcompound.getList("Patterns", 10);
+ // CraftBukkit start
+ while (this.patterns.size() > 20) {
2016-02-29 22:32:46 +01:00
+ this.patterns.remove(20);
+ }
+ // CraftBukkit end
2018-07-15 02:00:00 +02:00
this.h = null;
this.i = null;
this.j = null;