Merge pull request #33 from Trojaner25/patch-1
Fix NPE when onPlayerJoins occurs
This commit is contained in:
commit
5d230e4460
@ -96,7 +96,7 @@ public class LimboCache {
|
||||
if (player.isDead()) {
|
||||
loc = plugin.getSpawnLocation(player);
|
||||
}
|
||||
cache.put(player.getName(), new LimboPlayer(name, loc, inv, arm, gameMode, operator, playerGroup, flying));
|
||||
cache.put(name, new LimboPlayer(name, loc, inv, arm, gameMode, operator, playerGroup, flying));
|
||||
}
|
||||
|
||||
public void addLimboPlayer(Player player, String group) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user