mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-24 03:25:29 +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) {
|
||||
// Better than nothing
|
||||
player = offlinePlayer.getProxyPlayer();
|
||||
player = offlinePlayer.getPlayer();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user