build "fixed" and other saving fix

This commit is contained in:
aPunch 2012-01-22 08:43:25 -06:00
parent 3ec65fb8ef
commit 039dbffd2e
4 changed files with 3 additions and 1 deletions

View File

@ -19,6 +19,8 @@
<pathelement location="${lib}/bukkit-1.1-R1-SNAPSHOT.jar" />
<pathelement location="${lib}/craftbukkit-1.1-R1-SNAPSHOT.jar" />
<pathelement location="${lib}/CitizensAPI.jar" />
<pathelement location="${lib}/junit.jar" />
<pathelement location="${lib}/hamcrest.jar" />
<fileset dir="lib">
<include name="CitizensAPI.jar" />
</fileset>

BIN
lib/hamcrest.jar Normal file

Binary file not shown.

BIN
lib/junit.jar Normal file

Binary file not shown.

View File

@ -131,7 +131,7 @@ public class Citizens extends JavaPlugin {
for (NPC npc : npcManager.getAllNPCs()) {
DataKey root = saves.getKey("npc." + npc.getId());
root.setString("name", npc.getFullName());
root.setBoolean("spawned", npc.getBukkitEntity().isDead());
root.setBoolean("spawned", !npc.getBukkitEntity().isDead());
// Save the character if it exists
if (npc.getCharacter() != null) {