build "fixed" and other saving fix
This commit is contained in:
parent
3ec65fb8ef
commit
039dbffd2e
|
@ -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>
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue