Merge branch 'HbmMods:master' into master

This commit is contained in:
Raaaaaaaaaay 2026-02-27 09:22:12 +02:00 committed by GitHub
commit c98c83aa5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -278,6 +278,7 @@ public class TileEntityMachineTurbineGas extends TileEntityMachineBase implement
} }
if(counter == 580) { if(counter == 580) {
counter = 225; // ensures it shuts down properly when done immediately after startup
state = 1; state = 1;
} }
} }
@ -636,14 +637,14 @@ public class TileEntityMachineTurbineGas extends TileEntityMachineBase implement
@Callback(direct = true, limit = 4) @Callback(direct = true, limit = 4)
@Optional.Method(modid = "OpenComputers") @Optional.Method(modid = "OpenComputers")
public Object[] start(Context context, Arguments args) { public Object[] start(Context context, Arguments args) {
state = -1; if (state == 0) state = -1;
return new Object[] {}; return new Object[] {};
} }
@Callback(direct = true, limit = 4) @Callback(direct = true, limit = 4)
@Optional.Method(modid = "OpenComputers") @Optional.Method(modid = "OpenComputers")
public Object[] stop(Context context, Arguments args) { public Object[] stop(Context context, Arguments args) {
state = 0; if (state == 1) state = 0;
return new Object[] {}; return new Object[] {};
} }