mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-12-28 03:57:38 +01:00
Remove getSimpleName FawePlayer
This commit is contained in:
parent
4c87fea95c
commit
e901a0eba6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user