2015-07-23 21:50:53 +02:00
|
|
|
--- a/net/minecraft/server/TileEntityBanner.java
|
|
|
|
+++ b/net/minecraft/server/TileEntityBanner.java
|
2016-11-17 02:41:03 +01:00
|
|
|
@@ -23,6 +23,11 @@
|
2015-07-23 21:50:53 +02:00
|
|
|
|
2016-11-17 02:41:03 +01:00
|
|
|
if (nbttagcompound != null && nbttagcompound.hasKeyOfType("Patterns", 9)) {
|
|
|
|
this.patterns = nbttagcompound.getList("Patterns", 10).d();
|
|
|
|
+ // CraftBukkit start
|
|
|
|
+ while (this.patterns.size() > 20) {
|
|
|
|
+ this.patterns.remove(20);
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
}
|
2015-07-23 21:50:53 +02:00
|
|
|
|
2016-11-17 02:41:03 +01:00
|
|
|
this.color = flag ? d(itemstack) : ItemBanner.c(itemstack);
|
|
|
|
@@ -67,6 +72,11 @@
|
|
|
|
|
|
|
|
this.color = EnumColor.fromInvColorIndex(nbttagcompound.getInt("Base"));
|
2015-07-23 21:50:53 +02: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);
|
2015-07-23 21:50:53 +02:00
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
this.i = null;
|
|
|
|
this.j = null;
|
2016-11-17 02:41:03 +01:00
|
|
|
this.k = null;
|