amongusamongusamongusamongusamongusamongusamongusamongusamongusamongusam

This commit is contained in:
Vaern 2022-06-23 15:15:25 -07:00
parent aa7e20f3e2
commit 1d9c4fec33
2 changed files with 3 additions and 29 deletions

View File

@ -29,7 +29,7 @@ public class ReactorZirnox extends BlockDummyable {
if(meta >= 12)
return new TileEntityReactorZirnox();
if(meta >= 6)
return new TileEntityProxyCombo(false, true, true);
return new TileEntityProxyCombo(true, true, true);
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 + 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);
//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);
}
}

View File

@ -98,32 +98,6 @@ public class TileEntityReactorZirnox extends TileEntityMachineBase implements IF
public boolean canExtractItem(int i, ItemStack stack, int j) {
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
public void readFromNBT(NBTTagCompound nbt) {
@ -219,8 +193,6 @@ public class TileEntityReactorZirnox extends TileEntityMachineBase implements IF
carbonDioxide.loadTank(24, 26, slots);
water.loadTank(25, 27, slots);
loadFuel();
if(isOn) {
for(int i = 0; i < 24; i++) {