From bde63666bc627646005b57567bc390d683bb9987 Mon Sep 17 00:00:00 2001 From: graywolf336 Date: Fri, 27 Dec 2013 18:22:13 -0600 Subject: [PATCH] Fix the issue with losing the inventory and the armor being moved to the inventory. --- src/main/java/com/graywolf336/jail/JailIO.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/graywolf336/jail/JailIO.java b/src/main/java/com/graywolf336/jail/JailIO.java index 19d03e0..36064e1 100644 --- a/src/main/java/com/graywolf336/jail/JailIO.java +++ b/src/main/java/com/graywolf336/jail/JailIO.java @@ -320,7 +320,7 @@ public class JailIO { p.setPreviousPosition(flat.getString(cellNode + "prisoner.previousLocation")); p.setPreviousGameMode(flat.getString(cellNode + "prisoner.previousGameMode")); p.setInventory(flat.getString(cellNode + "prisoner.inventory", "")); - p.setInventory(flat.getString(cellNode + "prisoner.armor", "")); + p.setArmor(flat.getString(cellNode + "prisoner.armor", "")); c.setPrisoner(p); } @@ -339,7 +339,7 @@ public class JailIO { pris.setPreviousPosition(flat.getString(pNode + "previousLocation")); pris.setPreviousGameMode(flat.getString(pNode + "previousGameMode")); pris.setInventory(flat.getString(pNode + "inventory", "")); - pris.setInventory(flat.getString(pNode + "armor", "")); + pris.setArmor(flat.getString(pNode + "armor", "")); j.addPrisoner(pris); } }