diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftSign.java b/src/main/java/org/bukkit/craftbukkit/block/CraftSign.java index e6f86cc4b1..e7e58877e2 100644 --- a/src/main/java/org/bukkit/craftbukkit/block/CraftSign.java +++ b/src/main/java/org/bukkit/craftbukkit/block/CraftSign.java @@ -1,8 +1,10 @@ package org.bukkit.craftbukkit.block; import net.minecraft.server.ChatComponentText; +import net.minecraft.server.EnumColor; import net.minecraft.server.IChatBaseComponent; import net.minecraft.server.TileEntitySign; +import org.bukkit.DyeColor; import org.bukkit.Material; import org.bukkit.block.Block; import org.bukkit.block.Sign; @@ -55,6 +57,16 @@ public class CraftSign extends CraftBlockEntityState implements this.editable = editable; } + @Override + public DyeColor getColor() { + return DyeColor.getByWoolData((byte) getSnapshot().f().getColorIndex()); + } + + @Override + public void setColor(DyeColor color) { + getSnapshot().a(EnumColor.fromColorIndex(color.getWoolData())); + } + @Override public void applyTo(TileEntitySign sign) { super.applyTo(sign);