Fixed chunk relocation bug

This commit is contained in:
Justin Aquadro 2012-07-22 00:19:26 -04:00
parent 0ca56beb76
commit 489e3c03d0

View file

@ -169,7 +169,10 @@ namespace Substrate
public void SetLocation (int x, int z)
{
ChunkRef c = _container.SetChunk(x, z, GetChunk());
int relX = LocalX + (x - X);
int relZ = LocalZ + (z - Z);
ChunkRef c = _container.SetChunk(relX, relZ, GetChunk());
_container = c._container;
_cx = c._cx;