mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
amongusamongusamongusamongusamongusamongusamongusamongusamongusamongusam
This commit is contained in:
parent
aa7e20f3e2
commit
1d9c4fec33
@ -29,7 +29,7 @@ public class ReactorZirnox extends BlockDummyable {
|
|||||||
if(meta >= 12)
|
if(meta >= 12)
|
||||||
return new TileEntityReactorZirnox();
|
return new TileEntityReactorZirnox();
|
||||||
if(meta >= 6)
|
if(meta >= 6)
|
||||||
return new TileEntityProxyCombo(false, true, true);
|
return new TileEntityProxyCombo(true, true, true);
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -75,6 +75,8 @@ public class ReactorZirnox extends BlockDummyable {
|
|||||||
this.makeExtra(world, x + dir.offsetX * o + rot.offsetX * 2, y + 3, z + dir.offsetZ * o + rot.offsetZ * 2);
|
this.makeExtra(world, x + dir.offsetX * o + rot.offsetX * 2, y + 3, z + dir.offsetZ * o + rot.offsetZ * 2);
|
||||||
this.makeExtra(world, x + dir.offsetX * o + rot.offsetX * -2, y + 1, z + dir.offsetZ * o + rot.offsetZ * -2);
|
this.makeExtra(world, x + dir.offsetX * o + rot.offsetX * -2, y + 1, z + dir.offsetZ * o + rot.offsetZ * -2);
|
||||||
this.makeExtra(world, x + dir.offsetX * o + rot.offsetX * -2, y + 3, z + dir.offsetZ * o + rot.offsetZ * -2);
|
this.makeExtra(world, x + dir.offsetX * o + rot.offsetX * -2, y + 3, z + dir.offsetZ * o + rot.offsetZ * -2);
|
||||||
|
//i still don't know why the ports were such an issue all those months ago
|
||||||
|
this.makeExtra(world, x + dir.offsetX * o, y + 4, z + dir.offsetZ * o);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -99,32 +99,6 @@ public class TileEntityReactorZirnox extends TileEntityMachineBase implements IF
|
|||||||
return i < 24 && !(stack.getItem() instanceof ItemZirnoxRod);
|
return i < 24 && !(stack.getItem() instanceof ItemZirnoxRod);
|
||||||
}
|
}
|
||||||
|
|
||||||
//fucking hate having to do this
|
|
||||||
private void loadFuel() {
|
|
||||||
TileEntity te = worldObj.getTileEntity(this.xCoord, this.yCoord + 5, this.zCoord);
|
|
||||||
|
|
||||||
if(te instanceof IInventory) {
|
|
||||||
IInventory inv = (IInventory) te;
|
|
||||||
|
|
||||||
for(int i = 0; i < inv.getSizeInventory(); i++) {
|
|
||||||
|
|
||||||
ItemStack stack = inv.getStackInSlot(i);
|
|
||||||
if(stack != null && stack.getItem() instanceof ItemZirnoxRod) {
|
|
||||||
|
|
||||||
for(int j = 0; j < 24; j++) {
|
|
||||||
//ZIRNOX rods cannot stack higher than 1 anyway
|
|
||||||
if(slots[j] == null) {
|
|
||||||
slots[j] = stack.copy();
|
|
||||||
slots[j].stackSize = 1;
|
|
||||||
inv.decrStackSize(i, 1);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void readFromNBT(NBTTagCompound nbt) {
|
public void readFromNBT(NBTTagCompound nbt) {
|
||||||
super.readFromNBT(nbt);
|
super.readFromNBT(nbt);
|
||||||
@ -219,8 +193,6 @@ public class TileEntityReactorZirnox extends TileEntityMachineBase implements IF
|
|||||||
carbonDioxide.loadTank(24, 26, slots);
|
carbonDioxide.loadTank(24, 26, slots);
|
||||||
water.loadTank(25, 27, slots);
|
water.loadTank(25, 27, slots);
|
||||||
|
|
||||||
loadFuel();
|
|
||||||
|
|
||||||
if(isOn) {
|
if(isOn) {
|
||||||
for(int i = 0; i < 24; i++) {
|
for(int i = 0; i < 24; i++) {
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user