mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
minor fixes
This commit is contained in:
parent
fa0d6adc66
commit
b141ccbb40
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user