From a21e2243716748a25acf862e88ccef30ed90ad0d Mon Sep 17 00:00:00 2001 From: Ali Shirmohammadi Date: Tue, 7 May 2019 23:18:11 +0430 Subject: [PATCH] delete printStackTrace in spell loading catch --- src/data/JsonParser.java | 4 +--- src/data/spell.json | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/data/JsonParser.java b/src/data/JsonParser.java index 846136e..5b62333 100644 --- a/src/data/JsonParser.java +++ b/src/data/JsonParser.java @@ -150,9 +150,7 @@ public static List getSpells() throws FileNotFoundException, JSONException (String) spellHashMap.get("targetType") ); - } catch (Exception e) { - e.printStackTrace(); - } + } catch (Exception e) {} spell.setTargetType(targetType); List buffs = (List) spellHashMap.get("effect"); for(Object buffObject : buffs) { diff --git a/src/data/spell.json b/src/data/spell.json index f5eae1e..67781b1 100644 --- a/src/data/spell.json +++ b/src/data/spell.json @@ -74,7 +74,7 @@ "name": "Fireball", "price": 600, "manaPoint": 3, - "targetType": {}, + "targetType": "", "effect": [] }, { @@ -95,7 +95,7 @@ "name": "Poison Lake", "price": 900, "manaPoint": 5, - "targetType": {}, + "targetType": "", "effect": [] }, {