mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-03-14 05:35:35 +00:00
sorry guys, no more ccgt fusion
- fixes OC compat state functions to check current state before changing it - fixed shutdown glitching out when doing it immediately after startup
This commit is contained in:
parent
c34e9c15e4
commit
d5e53550ef
@ -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[] {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user