3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-26 02:50:06 +01:00

remove getSimpleName from FawePlayer

Dieser Commit ist enthalten in:
Jesse Boyd 2019-04-11 02:11:14 +10:00
Ursprung c519c5ec38
Commit f0d646a9a1
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 59F1DE6293AF6E1F

Datei anzeigen

@ -74,7 +74,7 @@ public abstract class FawePlayer<T> extends Metadatable {
} }
if (obj instanceof Player) { if (obj instanceof Player) {
Player actor = LocationMaskedPlayerWrapper.unwrap((Player) obj); Player actor = LocationMaskedPlayerWrapper.unwrap((Player) obj);
if (obj.getClass().getSimpleName().equals("PlayerProxy")) { if (obj.getClass().getName().endsWith("PlayerProxy")) {
try { try {
Field fieldBasePlayer = actor.getClass().getDeclaredField("basePlayer"); Field fieldBasePlayer = actor.getClass().getDeclaredField("basePlayer");
fieldBasePlayer.setAccessible(true); fieldBasePlayer.setAccessible(true);