Skip to content

Commit

Permalink
Fix annihilation planes working when the network is offline (#8080)
Browse files Browse the repository at this point in the history
We could do the reset anyway even the plane is not active, but it
doesn't seem useful.
  • Loading branch information
Technici4n authored Jul 31, 2024
1 parent d6efcbd commit cfd9dbc
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,13 @@ public TickingRequest getTickingRequest(IGridNode node) {

@Override
public TickRateModulation tickingRequest(IGridNode node, int ticksSinceLastCall) {
if (!isActive()) {
return TickRateModulation.SLEEP;
}

var grid = node.getGrid();

if (isActive() && continuousGeneration != null) {
if (continuousGeneration != null) {
continuousGenerationTicks += ticksSinceLastCall;
if (continuousGenerationTicks >= continuousGeneration.ticks) {
long amount = continuousGenerationTicks / continuousGeneration.ticks;
Expand Down

0 comments on commit cfd9dbc

Please sign in to comment.