mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-04 17:59:35 +01:00
Don't save NULL injectors in a ConcurrentHashMap.
This commit is contained in:
parent
331fc94190
commit
43c0b5d8f1
@ -340,8 +340,10 @@ public class PlayerInjectionHandler {
|
|||||||
if (permanentHook != getPlayerHook(phase))
|
if (permanentHook != getPlayerHook(phase))
|
||||||
setPlayerHook(phase, tempHook);
|
setPlayerHook(phase, tempHook);
|
||||||
|
|
||||||
// Save last injector
|
// Save injector
|
||||||
playerInjection.put(player, injector);
|
if (injector != null) {
|
||||||
|
playerInjection.put(player, injector);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return injector;
|
return injector;
|
||||||
|
Loading…
Reference in New Issue
Block a user