Hold shift to go faster in the AESU gui, closes #1686

This commit is contained in:
modmuss50 2019-03-17 16:10:20 +00:00
parent ee0d72223a
commit d7f0e04034
3 changed files with 15 additions and 9 deletions

View file

@ -54,18 +54,18 @@ public class TileAdjustableSU extends TileEnergyStorage implements IContainerPro
super("ADJUSTABLE_SU", 4, ModBlocks.ADJUSTABLE_SU, EnumPowerTier.INSANE, maxInput, maxOutput, maxEnergy);
}
public void handleGuiInputFromClient(int id) {
public void handleGuiInputFromClient(int id, boolean shift) {
if (id == 300) {
OUTPUT += 256;
OUTPUT += shift ? 4096 : 256;
}
if (id == 301) {
OUTPUT += 64;
OUTPUT += shift ? 512 : 64;
}
if (id == 302) {
OUTPUT -= 64;
OUTPUT -= shift ? 512 : 64;
}
if (id == 303) {
OUTPUT -= 256;
OUTPUT -= shift ? 4096 : 256;
}
if (OUTPUT > maxOutput) {
OUTPUT = maxOutput;