Skip to content

Commit

Permalink
no need to call reset()
Browse files Browse the repository at this point in the history
  • Loading branch information
DerToaster98 committed Jan 17, 2025
1 parent 166438c commit d45567e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ public void rotate(MovecraftRotation rotation, MovecraftLocation origin) {
MovecraftLocation newAbsolute = origin.add(vector);
System.out.println("New absolute: " + newAbsolute.toString());
// Ugly hack, but necessary
Craft actualCraft = this.craft;
this.craft = null;
reset(actualCraft, newAbsolute);
MovecraftLocation craftMidPoint = this.craft.getHitBox().getMidPoint();
this.offSet = newAbsolute.subtract(craftMidPoint);
System.out.println("New absolute after recalculating: " + this.getAbsoluteLocation().toString());
}

/**
Expand Down

0 comments on commit d45567e

Please sign in to comment.