Fix the removing prisoner setting the wrong thing to null.

This commit is contained in:
graywolf336 2014-08-19 15:04:39 -05:00
parent 3405ab100f
commit 33528aee56

View File

@ -968,7 +968,7 @@ public class JailIO {
if(c == null) if(c == null)
flat.set("jails." + j.getName() + ".prisoners." + p.getUUID().toString(), null); flat.set("jails." + j.getName() + ".prisoners." + p.getUUID().toString(), null);
else else
flat.set("jails." + j.getName() + "." + c.getName() + ".prisoner", null); flat.set("jails." + j.getName() + ".cells." + c.getName() + ".prisoner", null);
try { try {
flat.save(new File(pl.getDataFolder(), "data.yml")); flat.save(new File(pl.getDataFolder(), "data.yml"));