diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-06-17 19:50:26 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-06-17 19:50:26 +0200 |
commit | 2da7768298927f0fab1d27233afc0104b59ff873 (patch) | |
tree | 364ac5d082688a9f0dc5b895b15e9d4a4983a7b2 /src | |
parent | Fix fence gate sound (Redstone simulator). (diff) | |
parent | Merge pull request #1101 from Howaner/FenceGate (diff) | |
download | cuberite-2da7768298927f0fab1d27233afc0104b59ff873.tar cuberite-2da7768298927f0fab1d27233afc0104b59ff873.tar.gz cuberite-2da7768298927f0fab1d27233afc0104b59ff873.tar.bz2 cuberite-2da7768298927f0fab1d27233afc0104b59ff873.tar.lz cuberite-2da7768298927f0fab1d27233afc0104b59ff873.tar.xz cuberite-2da7768298927f0fab1d27233afc0104b59ff873.tar.zst cuberite-2da7768298927f0fab1d27233afc0104b59ff873.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Simulator/IncrementalRedstoneSimulator.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator.cpp b/src/Simulator/IncrementalRedstoneSimulator.cpp index 542bff8ad..d65d4eb45 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)) { |