mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-12-28 20:19:09 +01:00
drop endswith check
This commit is contained in:
parent
c5640e5038
commit
a31dd987a5
@ -89,7 +89,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 ((fieldBasePlayer != null && playerProxyClass.isAssignableFrom(obj.getClass())) || (fieldBasePlayer == null && obj.getClass().getName().endsWith("PlayerProxy"))) {
|
if ((fieldBasePlayer != null && playerProxyClass.isAssignableFrom(obj.getClass())) ) {
|
||||||
try {
|
try {
|
||||||
Player player = (Player) fieldBasePlayer.get(actor);
|
Player player = (Player) fieldBasePlayer.get(actor);
|
||||||
FawePlayer<Object> result = wrap(player);
|
FawePlayer<Object> result = wrap(player);
|
||||||
|
Loading…
Reference in New Issue
Block a user