arenaMap in ArenaMaster moved to avoid NPE in onDisable
This commit is contained in:
1 parent
3e529e5d0e
commit
fd5be195a8
3 files changed
+5
-5
No files matched your search
@@ -50,9 +50,10 @@ public class ArenaMaster //implements Master
|
||||
*/
|
||||
public ArenaMaster(MobArena instance)
|
||||
{
|
||||
plugin = instance;
|
||||
config = plugin.getConfig();
|
||||
arenas = new LinkedList<Arena>();
|
||||
plugin = instance;
|
||||
config = plugin.getConfig();
|
||||
arenas = new LinkedList<Arena>();
|
||||
arenaMap = new HashMap<Player,Arena>();
|
||||
}
|
||||
|
||||
|
||||
@@ -254,7 +255,6 @@ public class ArenaMaster //implements Master
|
||||
arenas.add(arena);
|
||||
}
|
||||
|
||||
arenaMap = new HashMap<Player,Arena>();
|
||||
selectedArena = arenas.get(0);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user