From c4ac756c1ef8eb14f8b590cb176b8126153c3d18 Mon Sep 17 00:00:00 2001 From: Tanja Herche Date: Wed, 8 Feb 2023 00:23:28 +0100 Subject: [PATCH] refactoring: Re-added gold command --- src/main/java/org/bitbiome/entities/Player.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/bitbiome/entities/Player.java b/src/main/java/org/bitbiome/entities/Player.java index 8223d8c..ace4c01 100644 --- a/src/main/java/org/bitbiome/entities/Player.java +++ b/src/main/java/org/bitbiome/entities/Player.java @@ -11,7 +11,7 @@ public class Player { - private float gold; + private int gold; private Location location; private ArrayList inventory; @@ -24,7 +24,6 @@ public class Player { hp = 100.0F; location = new Location(jp.getJSONObject("playerconfig.json").getString("currentLocation"), new ArrayList<>(), new ArrayList<>()); inventory = new ArrayList<>(); - gold = jp.getJSONObject("playerconfig.json").getInt("gold"); } public String getName() {