Skip to content

Commit

Permalink
Fixed problem with aborting dialing
Browse files Browse the repository at this point in the history
  • Loading branch information
MineDragonCZ committed Jul 6, 2023
1 parent 9df5fce commit 36c8a83
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ public void update() {
// Checking lastFakePos and lastFakeWorld (if changed, close the gate if its open (gate was probably warped))
if(!world.isRemote){
if ((lastFakePos != getFakePos() || lastFakeWorld != getFakeWorld())) {
if (!getStargateState().idle() && (connectedToGate || connectingToGate)) {
if (!getStargateState().engaged() && !getStargateState().unstable() && !getStargateState().idle() && (connectedToGate || connectingToGate)) {
abortDialingSequence();
lastFakePos = getFakePos();
lastFakeWorld = getFakeWorld();
Expand All @@ -683,6 +683,11 @@ else if (getStargateState().engaged() || getStargateState().unstable()) {
lastFakeWorld = getFakeWorld();
markDirty();
}
else{
lastFakePos = getFakePos();
lastFakeWorld = getFakeWorld();
markDirty();
}
}
}

Expand Down

0 comments on commit 36c8a83

Please sign in to comment.