From 3c7ab4d03569bb0137af4ba9b7122dd4f7fd8030 Mon Sep 17 00:00:00 2001 From: Justin Aquadro Date: Sun, 15 Jan 2012 20:52:23 -0500 Subject: [PATCH] Fixed cache resolution bug when deleting chunks --- SubstrateCS/Source/Region.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SubstrateCS/Source/Region.cs b/SubstrateCS/Source/Region.cs index 35e13eb..2ccd29c 100644 --- a/SubstrateCS/Source/Region.cs +++ b/SubstrateCS/Source/Region.cs @@ -504,7 +504,7 @@ namespace Substrate rf.DeleteChunk(lcx, lcz); - ChunkKey k = new ChunkKey(lcx, lcz); + ChunkKey k = new ChunkKey(ChunkGlobalX(lcx), ChunkGlobalZ(lcz)); _cache.Remove(k); if (ChunkCount() == 0) {