Tier 0, 2, 3 machine blocks fixed

This commit is contained in:
drcrazy 2019-02-21 16:27:18 +03:00
parent 3201ac878b
commit 93cf0a97d5
4 changed files with 28 additions and 59 deletions

View file

@ -59,10 +59,12 @@ public class BlockCreativeQuantumChest extends BlockMachineBase {
public boolean isAdvanced() {
return true;
}
@Override
public void breakBlock(World worldIn, BlockPos pos, IBlockState state) {
//lets not drop max int items into the world, that sounds like a bad idea
worldIn.removeTileEntity(pos);
public void onReplaced(IBlockState state, World worldIn, BlockPos pos, IBlockState newState, boolean isMoving) {
if (state.getBlock() != newState.getBlock()) {
//lets not drop max int items into the world, that sounds like a bad idea
worldIn.removeTileEntity(pos);
}
}
}