mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-03-14 05:35:35 +00:00
Merge pull request #2733 from Voxelstice/oc-ccgt-fix
Gas turbine shutdown fix + OC state functions fix
This commit is contained in:
commit
3bf7b5614b
@ -278,6 +278,7 @@ public class TileEntityMachineTurbineGas extends TileEntityMachineBase implement
|
||||
}
|
||||
|
||||
if(counter == 580) {
|
||||
counter = 225; // ensures it shuts down properly when done immediately after startup
|
||||
state = 1;
|
||||
}
|
||||
}
|
||||
@ -636,14 +637,14 @@ public class TileEntityMachineTurbineGas extends TileEntityMachineBase implement
|
||||
@Callback(direct = true, limit = 4)
|
||||
@Optional.Method(modid = "OpenComputers")
|
||||
public Object[] start(Context context, Arguments args) {
|
||||
state = -1;
|
||||
if (state == 0) state = -1;
|
||||
return new Object[] {};
|
||||
}
|
||||
|
||||
@Callback(direct = true, limit = 4)
|
||||
@Optional.Method(modid = "OpenComputers")
|
||||
public Object[] stop(Context context, Arguments args) {
|
||||
state = 0;
|
||||
if (state == 1) state = 0;
|
||||
return new Object[] {};
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user