diff --git a/src/main/java/cn/nukkit/block/BlockConcretePowder.java b/src/main/java/cn/nukkit/block/BlockConcretePowder.java index 111c8d1baec..20811ae3608 100644 --- a/src/main/java/cn/nukkit/block/BlockConcretePowder.java +++ b/src/main/java/cn/nukkit/block/BlockConcretePowder.java @@ -5,6 +5,8 @@ import cn.nukkit.item.ItemTool; import cn.nukkit.level.Level; import cn.nukkit.math.BlockFace; +import cn.nukkit.utils.BlockColor; +import cn.nukkit.utils.DyeColor; /** * Created by CreeperFace on 2.6.2017. @@ -97,4 +99,9 @@ public boolean place(Item item, Block b, Block target, BlockFace face, double fx return true; } + + @Override + public BlockColor getColor() { + return DyeColor.getByWoolData(getDamage()).getColor(); + } } diff --git a/src/main/java/cn/nukkit/block/BlockTerracottaStained.java b/src/main/java/cn/nukkit/block/BlockTerracottaStained.java index 31180029c90..fa538493acb 100644 --- a/src/main/java/cn/nukkit/block/BlockTerracottaStained.java +++ b/src/main/java/cn/nukkit/block/BlockTerracottaStained.java @@ -4,6 +4,7 @@ import cn.nukkit.item.ItemTool; import cn.nukkit.utils.BlockColor; import cn.nukkit.utils.DyeColor; +import cn.nukkit.utils.TerracottaColor; /** * Created on 2015/12/2 by xtypr. @@ -59,7 +60,7 @@ public Item[] getDrops(Item item) { @Override public BlockColor getColor() { - return DyeColor.getByWoolData(getDamage()).getColor(); + return TerracottaColor.getByTerracottaData(getDamage()).getColor(); } public DyeColor getDyeColor() {