mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-28 05:35:28 +01:00
Fix an NPE reported in ticket-38.
This commit is contained in:
parent
bc1955bff3
commit
dd3cd6c768
@ -427,7 +427,7 @@ public class SpigotPacketInjector implements SpigotPacketListener {
|
||||
void uninjectPlayer(Player player) {
|
||||
final NetworkObjectInjector injector = getInjector(player);
|
||||
|
||||
if (player != null) {
|
||||
if (player != null && injector != null) {
|
||||
Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
Loading…
Reference in New Issue
Block a user