mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 01:39:52 +03:00
34 lines
1.3 KiB
Diff
34 lines
1.3 KiB
Diff
--- ../src-base/minecraft/net/minecraft/tileentity/TileEntityBanner.java
|
|
+++ ../src-work/minecraft/net/minecraft/tileentity/TileEntityBanner.java
|
|
@@ -19,8 +19,8 @@
|
|
public class TileEntityBanner extends TileEntity implements IWorldNameable
|
|
{
|
|
private String name;
|
|
- private EnumDyeColor baseColor = EnumDyeColor.BLACK;
|
|
- private NBTTagList patterns;
|
|
+ public EnumDyeColor baseColor = EnumDyeColor.BLACK;
|
|
+ public NBTTagList patterns;
|
|
private boolean patternDataSet;
|
|
private List<BannerPattern> patternList;
|
|
private List<EnumDyeColor> colorList;
|
|
@@ -34,6 +34,9 @@
|
|
if (nbttagcompound != null && nbttagcompound.hasKey("Patterns", 9))
|
|
{
|
|
this.patterns = nbttagcompound.getTagList("Patterns", 10).copy();
|
|
+ while (this.patterns.tagCount() > 20) {
|
|
+ this.patterns.removeTag(20);
|
|
+ }
|
|
}
|
|
|
|
this.baseColor = p_175112_2_ ? getColor(stack) : ItemBanner.getBaseColor(stack);
|
|
@@ -88,6 +91,9 @@
|
|
|
|
this.baseColor = EnumDyeColor.byDyeDamage(compound.getInteger("Base"));
|
|
this.patterns = compound.getTagList("Patterns", 10);
|
|
+ while (this.patterns.tagCount() > 20) {
|
|
+ this.patterns.removeTag(20);
|
|
+ }
|
|
this.patternList = null;
|
|
this.colorList = null;
|
|
this.patternResourceLocation = null;
|