Updated vacuum freezer multiblock. Some work for #1672
This commit is contained in:
parent
84a380f51e
commit
16ff7af929
1 changed files with 8 additions and 1 deletions
|
@ -25,6 +25,7 @@
|
||||||
package techreborn.tiles.machine.multiblock;
|
package techreborn.tiles.machine.multiblock;
|
||||||
|
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
|
import net.minecraft.util.math.BlockPos;
|
||||||
import reborncore.client.containerBuilder.IContainerProvider;
|
import reborncore.client.containerBuilder.IContainerProvider;
|
||||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||||
import reborncore.client.containerBuilder.builder.ContainerBuilder;
|
import reborncore.client.containerBuilder.builder.ContainerBuilder;
|
||||||
|
@ -57,7 +58,13 @@ public class TileVacuumFreezer extends TileGenericMachine implements IContainerP
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean getMultiBlock() {
|
public boolean getMultiBlock() {
|
||||||
return multiblockChecker.checkRectY(1, 1, MultiblockChecker.REINFORCED_CASING, MultiblockChecker.ZERO_OFFSET);
|
if (multiblockChecker == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
final boolean up = multiblockChecker.checkRectY(1, 1, MultiblockChecker.REINFORCED_CASING, MultiblockChecker.ZERO_OFFSET);
|
||||||
|
final boolean down = multiblockChecker.checkRectY(1, 1, MultiblockChecker.REINFORCED_CASING, new BlockPos(0, 2, 0));
|
||||||
|
final boolean chamber = multiblockChecker.checkRingYHollow(1, 1, MultiblockChecker.ADVANCED_CASING, new BlockPos(0, 1, 0));
|
||||||
|
return down && chamber && up;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TileGenericMachine
|
// TileGenericMachine
|
||||||
|
|
Loading…
Reference in a new issue