summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator.cpp
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2014-06-17 19:39:21 +0200
committerworktycho <work.tycho@gmail.com>2014-06-17 19:39:21 +0200
commit2f2071afc1fa6f18651d333a7029ba5473e2bf09 (patch)
treeddbb8748ab4af8c4e63fb81130374dfcf64bd9da /src/Simulator/IncrementalRedstoneSimulator.cpp
parentMerge pull request #1099 from Howaner/Blocks (diff)
parentFix fence gate redstone simulator. (diff)
downloadcuberite-2f2071afc1fa6f18651d333a7029ba5473e2bf09.tar
cuberite-2f2071afc1fa6f18651d333a7029ba5473e2bf09.tar.gz
cuberite-2f2071afc1fa6f18651d333a7029ba5473e2bf09.tar.bz2
cuberite-2f2071afc1fa6f18651d333a7029ba5473e2bf09.tar.lz
cuberite-2f2071afc1fa6f18651d333a7029ba5473e2bf09.tar.xz
cuberite-2f2071afc1fa6f18651d333a7029ba5473e2bf09.tar.zst
cuberite-2f2071afc1fa6f18651d333a7029ba5473e2bf09.zip
Diffstat (limited to '')
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator.cpp b/src/Simulator/IncrementalRedstoneSimulator.cpp
index 69c8b9f56..b8da978f2 100644
--- a/src/Simulator/IncrementalRedstoneSimulator.cpp
+++ b/src/Simulator/IncrementalRedstoneSimulator.cpp
@@ -546,8 +546,7 @@ void cIncrementalRedstoneSimulator::HandleFenceGate(int a_RelBlockX, int a_RelBl
{
int BlockX = (m_Chunk->GetPosX() * cChunkDef::Width) + a_RelBlockX;
int BlockZ = (m_Chunk->GetPosZ() * cChunkDef::Width) + a_RelBlockZ;
- cChunkInterface ChunkInterface(m_World.GetChunkMap());
- NIBBLETYPE MetaData = ChunkInterface.GetBlockMeta(a_RelBlockX, a_RelBlockY, a_RelBlockZ);
+ NIBBLETYPE MetaData = m_Chunk->GetMeta(a_RelBlockX, a_RelBlockY, a_RelBlockZ);
if (AreCoordsPowered(a_RelBlockX, a_RelBlockY, a_RelBlockZ))
{