mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Fix stupidity
This commit is contained in:
parent
1274fdcbac
commit
0222ebfaf9
@ -398,11 +398,11 @@ public class TileEntityMachineCombustionEngine extends TileEntityMachinePollutin
|
||||
@Callback(direct = true, limit = 4)
|
||||
@Optional.Method(modid = "OpenComputers")
|
||||
public Object[] setThrottle(Context context, Arguments args) {
|
||||
throttleRequest = args.checkInteger(0);
|
||||
if ((throttleRequest < 0) or (throttleRequest > 30)) { // return false without doing anything if number is outside normal
|
||||
int throttleRequest = args.checkInteger(0);
|
||||
if ((throttleRequest < 0) || (throttleRequest > 30)) { // return false without doing anything if number is outside normal
|
||||
return new Object[] {false, "Throttle request outside of range 0-30"};
|
||||
};
|
||||
setting = (int) (throttleRequest);
|
||||
setting = throttleRequest;
|
||||
return new Object[] {true};
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user