summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator/RedstoneSimulatorChunkData.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-12-21 14:54:04 +0100
committerGitHub <noreply@github.com>2020-12-21 14:54:04 +0100
commit9518a273570e8d38438c2a29aa10f987e7d44ce1 (patch)
tree11806582f5e27bad01ae96705f75f431ec3e9caf /src/Simulator/IncrementalRedstoneSimulator/RedstoneSimulatorChunkData.h
parentImprove Enderman targeting (diff)
downloadcuberite-9518a273570e8d38438c2a29aa10f987e7d44ce1.tar
cuberite-9518a273570e8d38438c2a29aa10f987e7d44ce1.tar.gz
cuberite-9518a273570e8d38438c2a29aa10f987e7d44ce1.tar.bz2
cuberite-9518a273570e8d38438c2a29aa10f987e7d44ce1.tar.lz
cuberite-9518a273570e8d38438c2a29aa10f987e7d44ce1.tar.xz
cuberite-9518a273570e8d38438c2a29aa10f987e7d44ce1.tar.zst
cuberite-9518a273570e8d38438c2a29aa10f987e7d44ce1.zip
Diffstat (limited to 'src/Simulator/IncrementalRedstoneSimulator/RedstoneSimulatorChunkData.h')
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator/RedstoneSimulatorChunkData.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator/RedstoneSimulatorChunkData.h b/src/Simulator/IncrementalRedstoneSimulator/RedstoneSimulatorChunkData.h
index 02da327a1..f9545d997 100644
--- a/src/Simulator/IncrementalRedstoneSimulator/RedstoneSimulatorChunkData.h
+++ b/src/Simulator/IncrementalRedstoneSimulator/RedstoneSimulatorChunkData.h
@@ -3,8 +3,9 @@
#include <stack>
-#include "../RedstoneSimulator.h"
-#include "../../Chunk.h"
+#include "Chunk.h"
+#include "BlockState.h"
+#include "Simulator/RedstoneSimulator.h"
@@ -82,7 +83,7 @@ public:
}
/** Temporary, should be chunk data: wire block store, to avoid recomputing states every time. */
- std::unordered_map<Vector3i, short, VectorHasher<int>> WireStates;
+ std::unordered_map<Vector3i, BlockState, VectorHasher<int>> WireStates;
std::unordered_set<Vector3i, VectorHasher<int>> AlwaysTickedPositions;