Fixes #1354
This commit is contained in:
parent
dce7e43c4f
commit
82eb0f62d6
2 changed files with 6 additions and 5 deletions
|
@ -52,7 +52,7 @@ public class GuiAESU extends GuiBase {
|
|||
this.drawSlot(62, 45, layer);
|
||||
this.drawSlot(98, 45, layer);
|
||||
this.drawArmourSlots(8, 18, layer);
|
||||
this.builder.drawEnergyOutput(this, 171, 61, (int) this.tile.getBaseMaxOutput(), layer);
|
||||
this.builder.drawEnergyOutput(this, 171, 61, this.tile.getCurrentOutput(), layer);
|
||||
this.builder.drawUpDownButtons(this, 121, 79, layer);
|
||||
}
|
||||
|
||||
|
|
|
@ -112,12 +112,13 @@ public class TileAdjustableSU extends TileEnergyStorage implements IContainerPro
|
|||
public double getBaseMaxOutput() {
|
||||
return OUTPUT;
|
||||
}
|
||||
|
||||
public int getBaseMaxOutputInt() {
|
||||
|
||||
|
||||
public int getCurrentOutput() {
|
||||
return OUTPUT;
|
||||
}
|
||||
|
||||
public void setBaseMaxOutput(int output) {
|
||||
public void setCurentOutput(int output) {
|
||||
this.OUTPUT = output;
|
||||
}
|
||||
|
||||
|
@ -125,6 +126,6 @@ public class TileAdjustableSU extends TileEnergyStorage implements IContainerPro
|
|||
public BuiltContainer createContainer(EntityPlayer player) {
|
||||
return new ContainerBuilder("aesu").player(player.inventory).inventory().hotbar().armor()
|
||||
.complete(8, 18).addArmor().addInventory().tile(this).energySlot(0, 62, 45).energySlot(1, 98, 45)
|
||||
.syncEnergyValue().syncIntegerValue(this::getBaseMaxOutputInt, this::setBaseMaxOutput).addInventory().create(this);
|
||||
.syncEnergyValue().syncIntegerValue(this::getCurrentOutput, this::setCurentOutput).addInventory().create(this);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue