mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-28 13:45:22 +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) {
|
void uninjectPlayer(Player player) {
|
||||||
final NetworkObjectInjector injector = getInjector(player);
|
final NetworkObjectInjector injector = getInjector(player);
|
||||||
|
|
||||||
if (player != null) {
|
if (player != null && injector != null) {
|
||||||
Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
|
Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
Loading…
Reference in New Issue
Block a user