mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-05 02:10:14 +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))
|
||||
setPlayerHook(phase, tempHook);
|
||||
|
||||
// Save last injector
|
||||
playerInjection.put(player, injector);
|
||||
// Save injector
|
||||
if (injector != null) {
|
||||
playerInjection.put(player, injector);
|
||||
}
|
||||
}
|
||||
|
||||
return injector;
|
||||
|
Loading…
Reference in New Issue
Block a user