Closes gh-298. Adding an extra loadout doesn't cause an error on the first attemp anymore.

This commit is contained in:
taoneill 2011-10-16 10:16:45 -04:00
parent d327c34b10
commit 8913f7ae5c
3 changed files with 4 additions and 4 deletions

View File

@ -425,8 +425,8 @@ public class War extends JavaPlugin {
} else {
HashMap<Integer, ItemStack> extraLoadout = warzone.getExtraLoadouts().get(loadoutName);
if (extraLoadout == null) {
HashMap<Integer, ItemStack> newLoadout = new HashMap<Integer, ItemStack>();
warzone.getExtraLoadouts().put(loadoutName, newLoadout);
extraLoadout = new HashMap<Integer, ItemStack>();
warzone.getExtraLoadouts().put(loadoutName, extraLoadout);
}
this.inventoryToLoadout(player, extraLoadout);
}

View File

@ -1,5 +1,5 @@
name: War
version: 1.6 (de Gaulle) FINAL
version: 1.6.1 (de Gaulle)
description: Lets you create TDM and CTF (warzones) for a more structured PVP experience.
author: tommytony
website: war.tommytony.com

View File

@ -1,5 +1,5 @@
name: War
version: 1.6 (de Gaulle) FINAL
version: 1.6.1 (de Gaulle)
description: Lets you create TDM and CTF (warzones) for a more structured PVP experience.
author: tommytony
website: war.tommytony.com