diff --git a/ItemDisguise/.classpath b/ItemDisguise/.classpath index 71e70473..2bda6dc7 100644 --- a/ItemDisguise/.classpath +++ b/ItemDisguise/.classpath @@ -7,6 +7,12 @@ + + + + + + diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/injector/player/ProxyPlayerInjectionHandler.java b/ProtocolLib/src/main/java/com/comphenix/protocol/injector/player/ProxyPlayerInjectionHandler.java index 5a9be055..6816610b 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/injector/player/ProxyPlayerInjectionHandler.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/injector/player/ProxyPlayerInjectionHandler.java @@ -537,6 +537,11 @@ class ProxyPlayerInjectionHandler implements PlayerInjectionHandler { if (injector == null) { // Try getting it from the player itself SocketAddress address = player.getAddress(); + + // Must have logged out - there's nothing we can do + if (address == null) + return null; + // Look that up without blocking SocketInjector result = inputStreamLookup.peekSocketInjector(address);