mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Merge pull request #2446 from BallOfEnergy1/master
Fix for TE crashes when using neutron nodespace.
This commit is contained in:
commit
b57acc2cb2
@ -4,6 +4,7 @@ import com.hbm.blocks.machine.rbmk.RBMKBase;
|
||||
import com.hbm.handler.neutron.NeutronNodeWorld.StreamWorld;
|
||||
import com.hbm.handler.radiation.ChunkRadiationManager;
|
||||
import com.hbm.tileentity.machine.rbmk.*;
|
||||
import com.hbm.util.Compat;
|
||||
import com.hbm.util.fauxpointtwelve.BlockPos;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@ -35,7 +36,7 @@ public class RBMKNeutronHandler {
|
||||
}
|
||||
|
||||
private static TileEntity blockPosToTE(World worldObj, BlockPos pos) {
|
||||
return worldObj.getTileEntity(pos.getX(), pos.getY(), pos.getZ());
|
||||
return Compat.getTileStandard(worldObj, pos.getX(), pos.getY(), pos.getZ());
|
||||
}
|
||||
|
||||
public static RBMKNeutronNode makeNode(StreamWorld streamWorld, TileEntityRBMKBase tile) {
|
||||
@ -222,7 +223,7 @@ public class RBMKNeutronHandler {
|
||||
pos.mutate(origin.tile.xCoord + x, origin.tile.yCoord, origin.tile.zCoord + z);
|
||||
|
||||
NeutronNode node = streamWorld.getNode(pos);
|
||||
if(node != null && node instanceof RBMKNeutronNode) {
|
||||
if(node instanceof RBMKNeutronNode) {
|
||||
positions[i - 1] = node;
|
||||
} else if(this.origin.tile.getBlockType() instanceof RBMKBase) {
|
||||
TileEntity te = blockPosToTE(world, pos);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user