2015-07-23 21:50:53 +02:00
|
|
|
--- a/net/minecraft/server/TileEntityBanner.java
|
|
|
|
+++ b/net/minecraft/server/TileEntityBanner.java
|
2016-05-10 13:47:39 +02:00
|
|
|
@@ -21,6 +21,11 @@
|
2015-07-23 21:50:53 +02:00
|
|
|
|
|
|
|
if (nbttagcompound.hasKey("Patterns")) {
|
|
|
|
this.patterns = (NBTTagList) nbttagcompound.getList("Patterns", 10).clone();
|
|
|
|
+ // 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
|
|
|
|
}
|
|
|
|
|
|
|
|
if (nbttagcompound.hasKeyOfType("Base", 99)) {
|
2016-05-10 13:47:39 +02:00
|
|
|
@@ -56,6 +61,11 @@
|
2015-07-23 21:50:53 +02:00
|
|
|
super.a(nbttagcompound);
|
|
|
|
this.color = nbttagcompound.getInt("Base");
|
|
|
|
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.h = null;
|
|
|
|
this.i = null;
|
|
|
|
this.j = null;
|