Don't save NULL injectors in a ConcurrentHashMap.

This commit is contained in:
Kristian S. Stangeland 2012-10-21 12:11:59 +02:00
parent 331fc94190
commit 43c0b5d8f1

View File

@ -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;