mirror of
https://github.com/taoneill/war.git
synced 2024-11-23 18:55:28 +01:00
Closes gh-298. Adding an extra loadout doesn't cause an error on the first attemp anymore.
This commit is contained in:
parent
d327c34b10
commit
8913f7ae5c
@ -425,8 +425,8 @@ public class War extends JavaPlugin {
|
|||||||
} else {
|
} else {
|
||||||
HashMap<Integer, ItemStack> extraLoadout = warzone.getExtraLoadouts().get(loadoutName);
|
HashMap<Integer, ItemStack> extraLoadout = warzone.getExtraLoadouts().get(loadoutName);
|
||||||
if (extraLoadout == null) {
|
if (extraLoadout == null) {
|
||||||
HashMap<Integer, ItemStack> newLoadout = new HashMap<Integer, ItemStack>();
|
extraLoadout = new HashMap<Integer, ItemStack>();
|
||||||
warzone.getExtraLoadouts().put(loadoutName, newLoadout);
|
warzone.getExtraLoadouts().put(loadoutName, extraLoadout);
|
||||||
}
|
}
|
||||||
this.inventoryToLoadout(player, extraLoadout);
|
this.inventoryToLoadout(player, extraLoadout);
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name: War
|
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.
|
description: Lets you create TDM and CTF (warzones) for a more structured PVP experience.
|
||||||
author: tommytony
|
author: tommytony
|
||||||
website: war.tommytony.com
|
website: war.tommytony.com
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name: War
|
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.
|
description: Lets you create TDM and CTF (warzones) for a more structured PVP experience.
|
||||||
author: tommytony
|
author: tommytony
|
||||||
website: war.tommytony.com
|
website: war.tommytony.com
|
||||||
|
Loading…
Reference in New Issue
Block a user