From 0bb679329de602065a8707c76acfba5c7b557450 Mon Sep 17 00:00:00 2001 From: graywolf336 Date: Sat, 3 May 2014 09:52:45 -0500 Subject: [PATCH] Fix the error when saving a cell that has a prisoner. This should fix and close #26. --- src/main/java/com/graywolf336/jail/JailIO.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/graywolf336/jail/JailIO.java b/src/main/java/com/graywolf336/jail/JailIO.java index 4ec3207..cf2d24b 100644 --- a/src/main/java/com/graywolf336/jail/JailIO.java +++ b/src/main/java/com/graywolf336/jail/JailIO.java @@ -922,11 +922,12 @@ public class JailIO { pPS.setFloat(6, p.getRemainingTime()); pPS.setBoolean(7, p.isOfflinePending()); pPS.setBoolean(8, p.isToBeTransferred()); - pPS.setString(9, p.getReason()); - pPS.setBytes(10, p.getInventory().getBytes()); - pPS.setBytes(11, p.getArmor().getBytes()); - pPS.setString(12, p.getPreviousLocationString()); - pPS.setString(13, p.getPreviousGameMode().toString()); + pPS.setString(9, p.getJailer()); + pPS.setString(10, p.getReason()); + pPS.setBytes(11, p.getInventory().getBytes()); + pPS.setBytes(12, p.getArmor().getBytes()); + pPS.setString(13, p.getPreviousLocationString()); + pPS.setString(14, p.getPreviousGameMode().toString()); pPS.executeUpdate(); pPS.close();