From f0d646a9a13bd0ddb07df14239a0aa9a6df45dd9 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 11 Apr 2019 02:11:14 +1000 Subject: [PATCH] remove getSimpleName from FawePlayer --- .../src/main/java/com/boydti/fawe/object/FawePlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/boydti/fawe/object/FawePlayer.java b/worldedit-core/src/main/java/com/boydti/fawe/object/FawePlayer.java index 04bcd1a94..b1c74813f 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/object/FawePlayer.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/object/FawePlayer.java @@ -74,7 +74,7 @@ public abstract class FawePlayer extends Metadatable { } if (obj instanceof Player) { Player actor = LocationMaskedPlayerWrapper.unwrap((Player) obj); - if (obj.getClass().getSimpleName().equals("PlayerProxy")) { + if (obj.getClass().getName().endsWith("PlayerProxy")) { try { Field fieldBasePlayer = actor.getClass().getDeclaredField("basePlayer"); fieldBasePlayer.setAccessible(true);