man i was stupid (fix another bug with CCGT involving starting/stopping)

This commit is contained in:
BallOfEnergy 2024-08-11 23:40:50 -05:00
parent d8f4b32c05
commit b98f2350b6

View File

@ -620,15 +620,14 @@ public class TileEntityMachineTurbineGas extends TileEntityMachineBase implement
@Callback(direct = true, limit = 4)
@Optional.Method(modid = "OpenComputers")
public Object[] start(Context context, Arguments args) {
stopIfNotReady();
startup();
state = -1;
return new Object[] {};
}
@Callback(direct = true, limit = 4)
@Optional.Method(modid = "OpenComputers")
public Object[] stop(Context context, Arguments args) {
shutdown();
state = 0;
return new Object[] {};
}