summaryrefslogtreecommitdiffstats
path: root/source/Simulator
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-03 16:33:55 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-03 16:33:55 +0100
commit55326ee2a72aea190ba9ccc7b04969742fc7ce5f (patch)
tree9361d4cfe6cb50f753ef78629bd602d8afe05bb8 /source/Simulator
parentRedstone simulator: adding a block now checks if the neighbors are redstone-related; if not, the block is ignored. (diff)
downloadcuberite-55326ee2a72aea190ba9ccc7b04969742fc7ce5f.tar
cuberite-55326ee2a72aea190ba9ccc7b04969742fc7ce5f.tar.gz
cuberite-55326ee2a72aea190ba9ccc7b04969742fc7ce5f.tar.bz2
cuberite-55326ee2a72aea190ba9ccc7b04969742fc7ce5f.tar.lz
cuberite-55326ee2a72aea190ba9ccc7b04969742fc7ce5f.tar.xz
cuberite-55326ee2a72aea190ba9ccc7b04969742fc7ce5f.tar.zst
cuberite-55326ee2a72aea190ba9ccc7b04969742fc7ce5f.zip
Diffstat (limited to 'source/Simulator')
-rw-r--r--source/Simulator/Simulator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/Simulator/Simulator.h b/source/Simulator/Simulator.h
index 63cc0b17f..e1d88f1c5 100644
--- a/source/Simulator/Simulator.h
+++ b/source/Simulator/Simulator.h
@@ -33,6 +33,8 @@ public:
virtual bool IsAllowedBlock(BLOCKTYPE a_BlockType) = 0;
protected:
+ friend class cChunk; // Calls AddBlock() in its WakeUpSimulators() function, to speed things up
+
/// Called to simulate a new block
virtual void AddBlock(int a_BlockX, int a_BlockY, int a_BlockZ, cChunk * a_Chunk) = 0;