Mappings
This commit is contained in:
parent
389b716880
commit
f5c6b59ebd
79 changed files with 163 additions and 204 deletions
|
@ -42,10 +42,10 @@ public class TileLSUStorage extends TileLegacyMachineBase
|
|||
network = new LesuNetwork();
|
||||
network.addElement(this);
|
||||
for (EnumFacing direction : EnumFacing.values()) {
|
||||
if (world.getTileEntity(new BlockPos(x + direction.getFrontOffsetX(), y + direction.getFrontOffsetY(),
|
||||
z + direction.getFrontOffsetZ())) instanceof TileLSUStorage) {
|
||||
TileLSUStorage lesu = (TileLSUStorage) world.getTileEntity(new BlockPos(x + direction.getFrontOffsetX(),
|
||||
y + direction.getFrontOffsetY(), z + direction.getFrontOffsetZ()));
|
||||
if (world.getTileEntity(new BlockPos(x + direction.getXOffset(), y + direction.getYOffset(),
|
||||
z + direction.getZOffset())) instanceof TileLSUStorage) {
|
||||
TileLSUStorage lesu = (TileLSUStorage) world.getTileEntity(new BlockPos(x + direction.getXOffset(),
|
||||
y + direction.getYOffset(), z + direction.getZOffset()));
|
||||
if (lesu.network != null) {
|
||||
lesu.network.merge(network);
|
||||
}
|
||||
|
|
|
@ -72,8 +72,8 @@ public class TileLapotronicSU extends TileEnergyStorage implements IContainerPro
|
|||
countedNetworks.clear();
|
||||
connectedBlocks = 0;
|
||||
for (EnumFacing dir : EnumFacing.values()) {
|
||||
BlockPos adjucentBlockPos = new BlockPos(pos.getX() + dir.getFrontOffsetX(),
|
||||
pos.getY() + dir.getFrontOffsetY(), pos.getZ() + dir.getFrontOffsetZ());
|
||||
BlockPos adjucentBlockPos = new BlockPos(pos.getX() + dir.getXOffset(),
|
||||
pos.getY() + dir.getXOffset(), pos.getZ() + dir.getXOffset());
|
||||
TileEntity adjucentTile = world.getTileEntity(adjucentBlockPos);
|
||||
if (adjucentTile == null || !(adjucentTile instanceof TileLSUStorage)) {
|
||||
continue;
|
||||
|
|
|
@ -95,8 +95,8 @@ public class TileIndustrialBlastFurnace extends TileGenericMachine implements IC
|
|||
heat += casing1.getHeatFromState(world.getBlockState(part.getPos()));
|
||||
}
|
||||
|
||||
if (world.getBlockState(location.offset(EnumFacing.UP, 1)).getBlock().getUnlocalizedName().equals("tile.lava")
|
||||
&& world.getBlockState(location.offset(EnumFacing.UP, 2)).getBlock().getUnlocalizedName().equals("tile.lava")) {
|
||||
if (world.getBlockState(location.offset(EnumFacing.UP, 1)).getBlock().getTranslationKey().equals("tile.lava")
|
||||
&& world.getBlockState(location.offset(EnumFacing.UP, 2)).getBlock().getTranslationKey().equals("tile.lava")) {
|
||||
heat += 500;
|
||||
}
|
||||
return heat;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue