Machine cases drop them selves to fix https://github.com/FTBTeam/FTB-Ultimate-Reloaded/issues/90
This commit is contained in:
parent
b9992292b2
commit
5397b26cf2
1 changed files with 1 additions and 19 deletions
|
@ -108,24 +108,6 @@ public class BlockMachineCasing extends BlockMultiblockBase {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void getDrops(NonNullList<ItemStack> drops, IBlockAccess world, BlockPos pos, IBlockState state, int fortune) {
|
|
||||||
if (RebornCoreConfig.wrenchRequired){
|
|
||||||
if (state.getValue(TYPE) == "reinforced") {
|
|
||||||
drops.add(new ItemStack(ModBlocks.MACHINE_FRAMES, 1, 1));
|
|
||||||
}
|
|
||||||
else if (state.getValue(TYPE) == "advanced") {
|
|
||||||
drops.add(new ItemStack(ModBlocks.MACHINE_FRAMES, 1, 2));
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
drops.add(new ItemStack(ModBlocks.MACHINE_FRAMES, 1, 0));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
super.getDrops(drops, world, pos, state, fortune);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand,
|
public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand,
|
||||||
EnumFacing side, float hitX, float hitY, float hitZ) {
|
EnumFacing side, float hitX, float hitY, float hitZ) {
|
||||||
|
|
Loading…
Reference in a new issue