Remove getSimpleName FawePlayer

This commit is contained in:
Jesse Boyd 2019-04-11 02:12:38 +10:00
parent 4c87fea95c
commit e901a0eba6
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -77,7 +77,7 @@ public abstract class FawePlayer<T> 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);