From 5a764a0e3abc0e9f70554068cc98a3d48f9df126 Mon Sep 17 00:00:00 2001 From: Justin Aquadro Date: Wed, 11 Jan 2012 23:02:47 -0500 Subject: [PATCH] Fixed bug where player.ClearSpawn() would not clear the spawn data. --- SubstrateCS/Source/Player.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SubstrateCS/Source/Player.cs b/SubstrateCS/Source/Player.cs index 13a266f..0a51566 100644 --- a/SubstrateCS/Source/Player.cs +++ b/SubstrateCS/Source/Player.cs @@ -500,6 +500,11 @@ namespace Substrate tree["SpawnY"] = new TagNodeInt(_spawnY ?? 0); tree["SpawnZ"] = new TagNodeInt(_spawnZ ?? 0); } + else { + tree.Remove("SpawnX"); + tree.Remove("SpawnY"); + tree.Remove("SpawnZ"); + } if (_world != null) { tree["World"] = new TagNodeString(_world);