forked from mirrors/NBTExplorer
Fixed bug where player.ClearSpawn() would not clear the spawn data.
This commit is contained in:
parent
1a7e157d9d
commit
5a764a0e3a
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue