RIP remains of dyeing special flowers, feature no one heard of

This commit is contained in:
Hubry committed 2020-02-24 19:46:57 +01:00
1 parent 76f116dc90
commit a9496b98ae
1 file changed
-9
@@ -145,15 +145,6 @@ public class BlockSpecialFlower extends FlowerBlock implements IWandable, IWandH
@Override
public boolean onBlockActivated(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockRayTraceResult hit) {
ItemStack stack = player.getHeldItem(hand);
if(!stack.isEmpty() && stack.getItem() instanceof ItemDye) {
DyeColor newColor = ((ItemDye) stack.getItem()).color;
DyeColor oldColor = state.get(BotaniaStateProps.COLOR);
if(newColor != oldColor)
world.setBlockState(pos, state.with(BotaniaStateProps.COLOR, newColor), 1 | 2);
return true;
}
return ((TileEntitySpecialFlower) world.getTileEntity(pos)).onBlockActivated(world, pos, state, player, hand, hit);
}