minor fixes

This commit is contained in:
Vaern 2021-12-24 14:07:32 -08:00
parent fa0d6adc66
commit b141ccbb40
3 changed files with 5 additions and 27 deletions

View File

@ -121,7 +121,7 @@ public class GUIReactorZirnox extends GuiInfoContainer {
if(zirnox.water.getFill() <= 0)
this.drawInfoPanel(guiLeft - 16, guiTop + 36 + 32, 16, 16, 6);
if(zirnox.carbonDioxide.getFill() <= 8000)
if(zirnox.carbonDioxide.getFill() <= 4000)
this.drawInfoPanel(guiLeft - 16, guiTop + 36 + 32 + 16, 16, 16, 7);
}

View File

@ -1793,10 +1793,10 @@ public class MachineRecipes {
output[1] = new ItemStack(ModItems.chocolate, 2);
break;
case DUCRETE:
output[0] = new ItemStack(ModBlocks.ducrete_smooth, 4);
output[1] = new ItemStack(ModBlocks.ducrete_smooth, 4);
output[2] = new ItemStack(ModBlocks.ducrete_smooth, 4);
output[3] = new ItemStack(ModBlocks.ducrete_smooth, 4);
output[0] = new ItemStack(ModBlocks.ducrete_smooth, 2);
output[1] = new ItemStack(ModBlocks.ducrete_smooth, 2);
output[2] = new ItemStack(ModBlocks.ducrete_smooth, 2);
output[3] = new ItemStack(ModBlocks.ducrete_smooth, 2);
default:
break;
}

View File

@ -62,19 +62,8 @@ public class TileEntityMachineCentrifuge extends TileEntityMachineBase implement
@Override
public void readFromNBT(NBTTagCompound nbt) {
super.readFromNBT(nbt);
NBTTagList list = nbt.getTagList("items", 10);
power = nbt.getLong("power");
progress = nbt.getShort("progress");
slots = new ItemStack[getSizeInventory()];
for(int i = 0; i < list.tagCount(); i++) {
NBTTagCompound nbt1 = list.getCompoundTagAt(i);
byte b0 = nbt1.getByte("slot");
if(b0 >= 0 && b0 < slots.length) {
slots[b0] = ItemStack.loadItemStackFromNBT(nbt1);
}
}
}
@Override
@ -82,17 +71,6 @@ public class TileEntityMachineCentrifuge extends TileEntityMachineBase implement
super.writeToNBT(nbt);
nbt.setLong("power", power);
nbt.setShort("progress", (short) progress);
NBTTagList list = new NBTTagList();
for(int i = 0; i < slots.length; i++) {
if(slots[i] != null) {
NBTTagCompound nbt1 = new NBTTagCompound();
nbt1.setByte("slot", (byte) i);
slots[i].writeToNBT(nbt1);
list.appendTag(nbt1);
}
}
nbt.setTag("items", list);
}
@Override