Patrone.cc-src-skid-me/toothless/server/nms-patches/TileEntityBanner.patch
disclearing 4f52c57848 MEME ME :heart
FUCK PUTTYEXE
2019-06-19 04:50:21 +01:00

27 lines
967 B
Diff

--- a/net/minecraft/server/TileEntityBanner.java
+++ b/net/minecraft/server/TileEntityBanner.java
@@ -20,6 +20,11 @@
if (nbttagcompound.hasKey("Patterns")) {
this.patterns = (NBTTagList) nbttagcompound.getList("Patterns", 10).clone();
+ // CraftBukkit start
+ while (this.patterns.size() > 20) {
+ this.patterns.a(20); // PAIL Rename remove
+ }
+ // CraftBukkit end
}
if (nbttagcompound.hasKeyOfType("Base", 99)) {
@@ -54,6 +59,11 @@
super.a(nbttagcompound);
this.color = nbttagcompound.getInt("Base");
this.patterns = nbttagcompound.getList("Patterns", 10);
+ // CraftBukkit start
+ while (this.patterns.size() > 20) {
+ this.patterns.a(20); // PAIL Rename remove
+ }
+ // CraftBukkit end
this.h = null;
this.i = null;
this.j = null;