mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Chicago Pile fix ClassCastException.
This commit is contained in:
parent
86de688469
commit
9a22c343c9
@ -198,7 +198,7 @@ public class BlockBobble extends BlockContainer implements IGUIProvider {
|
|||||||
NOS( "Dr Nostalgia", "Dr Nostalgia", "SSG and Vortex models", "Take a picture, I'ma pose, paparazzi$I've been drinking, moving like a zombie", true, ScrapType.BOARD_TRANSISTOR),
|
NOS( "Dr Nostalgia", "Dr Nostalgia", "SSG and Vortex models", "Take a picture, I'ma pose, paparazzi$I've been drinking, moving like a zombie", true, ScrapType.BOARD_TRANSISTOR),
|
||||||
DRILLGON( "Drillgon200", "Drillgon200", "1.12 Port", null, false, ScrapType.CPU_LOGIC),
|
DRILLGON( "Drillgon200", "Drillgon200", "1.12 Port", null, false, ScrapType.CPU_LOGIC),
|
||||||
CIRNO( "Cirno", "Cirno", "the only multi layered skin i had", "No brain. Head empty.", true, ScrapType.BOARD_BLANK),
|
CIRNO( "Cirno", "Cirno", "the only multi layered skin i had", "No brain. Head empty.", true, ScrapType.BOARD_BLANK),
|
||||||
MICROWAVE( "Microwave", "Microwave", "OC Compatibility", "they call me the food heater", true, ScrapType.BOARD_CONVERTER),
|
MICROWAVE( "Microwave", "Microwave", "OC Compatibility and massive RBMK/packet optimizations", "they call me the food heater$john optimization", true, ScrapType.BOARD_CONVERTER),
|
||||||
PEEP( "Peep", "LePeeperSauvage", "Coilgun, Leadburster and Congo Lake models, BDCL QC", "Fluffy ears can't hide in ash, nor snow.", true, ScrapType.CARD_BOARD),
|
PEEP( "Peep", "LePeeperSauvage", "Coilgun, Leadburster and Congo Lake models, BDCL QC", "Fluffy ears can't hide in ash, nor snow.", true, ScrapType.CARD_BOARD),
|
||||||
MELLOW( "MELLOWARPEGGIATION", "Mellow", "Industrial lighting, animation tools", "Make something cool now, ask for permission later.", true, ScrapType.CARD_PROCESSOR);
|
MELLOW( "MELLOWARPEGGIATION", "Mellow", "Industrial lighting, animation tools", "Make something cool now, ask for permission later.", true, ScrapType.CARD_PROCESSOR);
|
||||||
|
|
||||||
|
|||||||
@ -74,29 +74,28 @@ public class PileNeutronHandler {
|
|||||||
NeutronNodeWorld.addNode(new PileNeutronNode((TileEntityPileBase) tile));
|
NeutronNodeWorld.addNode(new PileNeutronNode((TileEntityPileBase) tile));
|
||||||
}
|
}
|
||||||
|
|
||||||
TileEntityPileBase te = (TileEntityPileBase) tile;
|
Block block = tile.getBlockType();
|
||||||
Block block = te.getBlockType();
|
int meta = tile.getBlockMetadata();
|
||||||
|
if(!(tile instanceof TileEntityPileBase)) {
|
||||||
|
|
||||||
|
// Return when a boron block is hit
|
||||||
|
if (block == ModBlocks.block_boron)
|
||||||
|
return;
|
||||||
|
|
||||||
// Return when a boron block is hit
|
else if (block == ModBlocks.concrete ||
|
||||||
if(block == ModBlocks.block_boron)
|
|
||||||
return;
|
|
||||||
|
|
||||||
else if(block == ModBlocks.concrete ||
|
|
||||||
block == ModBlocks.concrete_smooth ||
|
block == ModBlocks.concrete_smooth ||
|
||||||
block == ModBlocks.concrete_asbestos ||
|
block == ModBlocks.concrete_asbestos ||
|
||||||
block == ModBlocks.concrete_colored ||
|
block == ModBlocks.concrete_colored ||
|
||||||
block == ModBlocks.brick_concrete)
|
block == ModBlocks.brick_concrete)
|
||||||
fluxQuantity *= 0.25;
|
fluxQuantity *= 0.25;
|
||||||
|
|
||||||
int meta = te.getBlockMetadata();
|
if (block == ModBlocks.block_graphite_rod && (meta & 8) == 0)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(block == ModBlocks.block_graphite_rod && (meta & 8) == 0)
|
if(tile instanceof IPileNeutronReceiver) {
|
||||||
return;
|
|
||||||
|
|
||||||
if(te instanceof IPileNeutronReceiver) {
|
IPileNeutronReceiver rec = (IPileNeutronReceiver) tile;
|
||||||
|
|
||||||
IPileNeutronReceiver rec = (IPileNeutronReceiver) te;
|
|
||||||
rec.receiveNeutrons((int) Math.floor(fluxQuantity));
|
rec.receiveNeutrons((int) Math.floor(fluxQuantity));
|
||||||
|
|
||||||
if(block != ModBlocks.block_graphite_detector || (meta & 8) == 0)
|
if(block != ModBlocks.block_graphite_detector || (meta & 8) == 0)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user