fixed being able to silk touch golden leaves

This commit is contained in:
Ellpeck 2018-11-28 11:59:00 +01:00
parent d2e5efb6a9
commit 9059577f75

View file

@ -12,6 +12,7 @@ import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.renderer.color.IBlockColor;
import net.minecraft.client.renderer.color.IItemColor;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.NonNullList;
@ -171,6 +172,11 @@ public class BlockGoldenLeaves extends BlockLeaves implements
}
}
@Override
public boolean canSilkHarvest(World world, BlockPos pos, IBlockState state, EntityPlayer player) {
return false;
}
public static boolean convert(World world, BlockPos pos) {
IBlockState state = world.getBlockState(pos);
if (state.getBlock().isLeaves(state, world, pos) &&