2015-07-24 03:50:53 +08:00
|
|
|
--- a/net/minecraft/server/TileEntityBanner.java
|
|
|
|
+++ b/net/minecraft/server/TileEntityBanner.java
|
2018-07-15 08:00:00 +08:00
|
|
|
@@ -30,6 +30,11 @@
|
2015-07-24 03:50:53 +08:00
|
|
|
|
2016-11-17 09:41:03 +08:00
|
|
|
if (nbttagcompound != null && nbttagcompound.hasKeyOfType("Patterns", 9)) {
|
2018-12-13 08:00:00 +08:00
|
|
|
this.patterns = nbttagcompound.getList("Patterns", 10).clone();
|
2016-11-17 09:41:03 +08:00
|
|
|
+ // CraftBukkit start
|
|
|
|
+ while (this.patterns.size() > 20) {
|
|
|
|
+ this.patterns.remove(20);
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
}
|
2015-07-24 03:50:53 +08:00
|
|
|
|
2018-07-15 08:00:00 +08:00
|
|
|
this.color = enumcolor;
|
|
|
|
@@ -79,6 +84,11 @@
|
|
|
|
}
|
2016-11-17 09:41:03 +08:00
|
|
|
|
2015-07-24 03:50:53 +08:00
|
|
|
this.patterns = nbttagcompound.getList("Patterns", 10);
|
|
|
|
+ // CraftBukkit start
|
|
|
|
+ while (this.patterns.size() > 20) {
|
2016-03-01 05:32:46 +08:00
|
|
|
+ this.patterns.remove(20);
|
2015-07-24 03:50:53 +08:00
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
2018-07-15 08:00:00 +08:00
|
|
|
this.h = null;
|
2015-07-24 03:50:53 +08:00
|
|
|
this.i = null;
|
|
|
|
this.j = null;
|