Skip to content

Commit

Permalink
fix(staff): restore location instead of double inventory restore
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelillo15 committed Jan 10, 2025
1 parent e7d0e18 commit 7a3665d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public void disableStaffMode() {
long time = System.currentTimeMillis();
player.disablePlayerPerks();
restoreInventory();
if (config.get().staffMode.teleportToPreviousLocation()) restoreInventory();
if (config.get().staffMode.teleportToPreviousLocation()) restoreLocation();
player.sendMiniMessage(messages.get().staffMode.toggledOff());
writeStaffModeState(false);

Expand Down

0 comments on commit 7a3665d

Please sign in to comment.