Fixed bug where player.ClearSpawn() would not clear the spawn data.

This commit is contained in:
Justin Aquadro 2012-01-11 23:02:47 -05:00
parent 1a7e157d9d
commit 5a764a0e3a

View file

@ -500,6 +500,11 @@ namespace Substrate
tree["SpawnY"] = new TagNodeInt(_spawnY ?? 0); tree["SpawnY"] = new TagNodeInt(_spawnY ?? 0);
tree["SpawnZ"] = new TagNodeInt(_spawnZ ?? 0); tree["SpawnZ"] = new TagNodeInt(_spawnZ ?? 0);
} }
else {
tree.Remove("SpawnX");
tree.Remove("SpawnY");
tree.Remove("SpawnZ");
}
if (_world != null) { if (_world != null) {
tree["World"] = new TagNodeString(_world); tree["World"] = new TagNodeString(_world);