arenaMap in ArenaMaster moved to avoid NPE in onDisable

This commit is contained in:
Garbage Mule 2011-09-25 20:49:58 +02:00
parent 3e529e5d0e
commit fd5be195a8
3 changed files with 5 additions and 5 deletions

Binary file not shown.

View File

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

View File

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