Added null check for reward logging.
This commit is contained in:
Binary file not shown.
@@ -1,7 +1,7 @@
|
|||||||
name: MobArena
|
name: MobArena
|
||||||
author: garbagemule
|
author: garbagemule
|
||||||
main: com.garbagemule.MobArena.MobArena
|
main: com.garbagemule.MobArena.MobArena
|
||||||
version: 0.94.4.61
|
version: 0.94.4.62
|
||||||
softdepend: [Spout,MultiVerse,XcraftGate,Towny,Heroes,MagicSpells,Vault]
|
softdepend: [Spout,MultiVerse,XcraftGate,Towny,Heroes,MagicSpells,Vault]
|
||||||
commands:
|
commands:
|
||||||
ma:
|
ma:
|
||||||
|
|||||||
@@ -85,6 +85,8 @@ public class YMLSessionBuilder implements LogSessionBuilder
|
|||||||
Map<String,MutableInt> summed = new HashMap<String,MutableInt>();
|
Map<String,MutableInt> summed = new HashMap<String,MutableInt>();
|
||||||
|
|
||||||
for (ItemStack stack : rewards) {
|
for (ItemStack stack : rewards) {
|
||||||
|
if (stack == null) continue;
|
||||||
|
|
||||||
String type = (stack.getTypeId() == MobArena.ECONOMY_MONEY_ID ? "money" : stack.getType().toString().toLowerCase());
|
String type = (stack.getTypeId() == MobArena.ECONOMY_MONEY_ID ? "money" : stack.getType().toString().toLowerCase());
|
||||||
if (!summed.containsKey(type)) {
|
if (!summed.containsKey(type)) {
|
||||||
summed.put(type, new MutableInt());
|
summed.put(type, new MutableInt());
|
||||||
|
|||||||
Reference in New Issue
Block a user