mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-27 21:26:17 +01:00
Try to get the local player object if possible.
This commit is contained in:
parent
e0c03186c3
commit
d8b300e3a6
@ -145,7 +145,7 @@ public class PacketEvent extends EventObject implements Cancellable {
|
|||||||
|
|
||||||
if (offlinePlayer != null) {
|
if (offlinePlayer != null) {
|
||||||
// Better than nothing
|
// Better than nothing
|
||||||
player = offlinePlayer.getProxyPlayer();
|
player = offlinePlayer.getPlayer();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user