arenaMap in ArenaMaster moved to avoid NPE in onDisable
This commit is contained in:
1 parent
3e529e5d0e
commit
fd5be195a8
3 files changed
+2
-2
No files matched your search
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
name: MobArena
|
||||
main: com.garbagemule.MobArena.MobArena
|
||||
version: 0.94.3.3
|
||||
version: 0.94.3.4
|
||||
softdepend: [Spout,Permissions,MultiVerse,XcraftGate,Towny,Heroes,MagicSpells]
|
||||
commands:
|
||||
ma:
|
||||
|
||||
@@ -53,6 +53,7 @@ public class ArenaMaster //implements Master
|
||||
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