From c712031a0d716800e707719eaddc7cca11439298 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Mon, 16 Jul 2018 10:37:56 +1000 Subject: [PATCH] CraftBanner also needs to use wool data By: md_5 --- .../main/java/org/bukkit/craftbukkit/block/CraftBanner.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBanner.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBanner.java index 6672e80459..4332a03a41 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBanner.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBanner.java @@ -36,7 +36,7 @@ public class CraftBanner extends CraftBlockEntityState impleme if (banner.patterns != null) { for (int i = 0; i < banner.patterns.size(); i++) { NBTTagCompound p = (NBTTagCompound) banner.patterns.get(i); - patterns.add(new Pattern(DyeColor.getByDyeData((byte) p.getInt("Color")), PatternType.getByIdentifier(p.getString("Pattern")))); + patterns.add(new Pattern(DyeColor.getByWoolData((byte) p.getInt("Color")), PatternType.getByIdentifier(p.getString("Pattern")))); } } } @@ -96,7 +96,7 @@ public class CraftBanner extends CraftBlockEntityState impleme for (Pattern p : patterns) { NBTTagCompound compound = new NBTTagCompound(); - compound.setInt("Color", p.getColor().getDyeData()); + compound.setInt("Color", p.getColor().getWoolData()); compound.setString("Pattern", p.getPattern().getIdentifier()); newPatterns.add(compound); }