3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-15 12:30:06 +01:00
Paper/nms-patches/TileEntityBanner.patch

27 Zeilen
818 B
Diff

--- a/net/minecraft/server/TileEntityBanner.java
+++ b/net/minecraft/server/TileEntityBanner.java
2018-07-15 02:00:00 +02:00
@@ -30,6 +30,11 @@
2016-11-17 02:41:03 +01:00
if (nbttagcompound != null && nbttagcompound.hasKeyOfType("Patterns", 9)) {
2018-07-15 02:00:00 +02:00
this.patterns = nbttagcompound.getList("Patterns", 10).c();
2016-11-17 02:41:03 +01:00
+ // CraftBukkit start
+ while (this.patterns.size() > 20) {
+ this.patterns.remove(20);
+ }
+ // CraftBukkit end
}
2018-07-15 02:00:00 +02:00
this.color = enumcolor;
@@ -79,6 +84,11 @@
}
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;