From 57869047a43f5e3c3a01c0f619b80815b293651f Mon Sep 17 00:00:00 2001 From: StrangeOne101 Date: Sat, 26 Sep 2020 07:16:38 +1200 Subject: [PATCH] Fix unneeded getBendingPlayer call (#1095) # Changes - Changes `BendingPlayer.getBendingPlayer(Player player)` to redirect to `BendingPlayer.getBendingPlayer(OfflinePlayer player)` instead of `BendingPlayer.getBendingPlayer(String playerName)` --- src/com/projectkorra/projectkorra/BendingPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/projectkorra/projectkorra/BendingPlayer.java b/src/com/projectkorra/projectkorra/BendingPlayer.java index 41d8123d..bcff7f8a 100644 --- a/src/com/projectkorra/projectkorra/BendingPlayer.java +++ b/src/com/projectkorra/projectkorra/BendingPlayer.java @@ -511,7 +511,7 @@ public class BendingPlayer { return null; } - return getBendingPlayer(player.getName()); + return getBendingPlayer((OfflinePlayer)player); } /**