mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 19:05:16 +00:00
RIP remains of dyeing special flowers, feature no one heard of
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user