mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
sweet baby ray's honey mustard
fixed boundingbox problems and a crash
This commit is contained in:
parent
9340287403
commit
102f26c8d3
@ -53,7 +53,6 @@ public class MachineStrandCaster extends BlockDummyable implements ICrucibleAcce
|
||||
|
||||
@Override
|
||||
public TileEntity createNewTileEntity(World world, int meta) {
|
||||
|
||||
if (meta >= 12) return new TileEntityMachineStrandCaster();
|
||||
if (meta >= 6) return new TileEntityProxyCombo(true, false, true).moltenMetal();
|
||||
return null;
|
||||
@ -212,7 +211,8 @@ public class MachineStrandCaster extends BlockDummyable implements ICrucibleAcce
|
||||
if (tool != ToolType.SCREWDRIVER)
|
||||
return false;
|
||||
|
||||
TileEntityFoundryCastingBase cast = (TileEntityFoundryCastingBase) world.getTileEntity(x, y, z);
|
||||
int[] coords = findCore(world, x, y, z);
|
||||
TileEntityMachineStrandCaster cast = (TileEntityMachineStrandCaster) world.getTileEntity(coords[0], coords[1], coords[2]);
|
||||
|
||||
if (cast.slots[0] == null)
|
||||
return false;
|
||||
|
||||
@ -318,12 +318,12 @@ public class TileEntityMachineStrandCaster extends TileEntityFoundryCastingBase
|
||||
|
||||
if (bb == null) {
|
||||
bb = AxisAlignedBB.getBoundingBox(
|
||||
xCoord - 1,
|
||||
xCoord - 7,
|
||||
yCoord,
|
||||
zCoord - 1,
|
||||
xCoord + 6,
|
||||
zCoord - 7,
|
||||
xCoord + 7,
|
||||
yCoord + 3,
|
||||
zCoord + 6
|
||||
zCoord + 7
|
||||
);
|
||||
}
|
||||
return bb;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user