Skip to content

Commit

Permalink
actually run the code
Browse files Browse the repository at this point in the history
Tested: Calculation wise, the correct result is put out, but either the debugger is inaccurate or something else is happening...
  • Loading branch information
DerToaster98 committed Jan 17, 2025
1 parent 289ddbb commit 5085cbf
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ public void rotate(MovecraftRotation rotation, MovecraftLocation origin) {
MovecraftLocation vector = MathUtils.rotateVec(rotation, absolute.subtract(origin));

MovecraftLocation newAbsolute = origin.add(vector);
reset(this.craft, newAbsolute);
// Ugly hack, but necessary
Craft actualCraft = this.craft;
this.craft = null;
reset(actualCraft, newAbsolute);
}

/**
Expand Down

0 comments on commit 5085cbf

Please sign in to comment.