forked from mirrors/NBTExplorer
Fixed chunk relocation bug
This commit is contained in:
parent
0ca56beb76
commit
489e3c03d0
1 changed files with 4 additions and 1 deletions
|
@ -169,7 +169,10 @@ namespace Substrate
|
||||||
|
|
||||||
public void SetLocation (int x, int z)
|
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;
|
_container = c._container;
|
||||||
_cx = c._cx;
|
_cx = c._cx;
|
||||||
|
|
Loading…
Reference in a new issue