diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-03 16:33:55 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-03 16:33:55 +0100 |
commit | 55326ee2a72aea190ba9ccc7b04969742fc7ce5f (patch) | |
tree | 9361d4cfe6cb50f753ef78629bd602d8afe05bb8 /source/Simulator/Simulator.h | |
parent | Redstone simulator: adding a block now checks if the neighbors are redstone-related; if not, the block is ignored. (diff) | |
download | cuberite-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 '')
-rw-r--r-- | source/Simulator/Simulator.h | 2 |
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; |