Moved generators to enum

This commit is contained in:
drcrazy 2018-09-24 16:49:44 +03:00
parent 86a2612b97
commit 809c02934a
16 changed files with 51 additions and 87 deletions

View file

@ -105,7 +105,7 @@ public class TileFusionControlComputer extends TilePowerAcceptor
* @return boolean Returns true if block is fusion coil
*/
public boolean isCoil(BlockPos pos) {
return world.getBlockState(pos).getBlock() == TRContent.FUSION_COIL;
return world.getBlockState(pos).getBlock() == TRContent.Machine.FUSION_COIL.block;
}
/**
@ -359,7 +359,7 @@ public class TileFusionControlComputer extends TilePowerAcceptor
// IToolDrop
@Override
public ItemStack getToolDrop(EntityPlayer playerIn) {
return new ItemStack(TRContent.FUSION_CONTROL_COMPUTER, 1);
return TRContent.Machine.FUSION_CONTROL_COMPUTER.getStack();
}
// ItemHandlerProvider