Skip to content

Commit

Permalink
Sync patch
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanOff committed Jan 17, 2021
1 parent c4cfc7c commit 57e98da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion com/gaetan/staffpin/data/PlayerData.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void correct() {
this.player.getInventory().setArmorContents(this.getArmor());
this.player.updateInventory();
this.player.teleport(this.getLocation());
TaskUtil.run((() -> this.player.setGameMode(this.getGameMode())));
this.player.setGameMode(this.getGameMode());
this.setInventory(null);
}

Expand Down
2 changes: 1 addition & 1 deletion com/gaetan/staffpin/listener/PlayerListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void onChat(final AsyncPlayerChatEvent event) {
event.setCancelled(true);

if (event.getMessage().equals(playerData.getPin())) {
playerData.correct();
TaskUtil.run(playerData::correct);
return;
}

Expand Down

0 comments on commit 57e98da

Please sign in to comment.