summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator/ForEachSourceCallback.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2021-01-18 17:09:10 +0100
committerGitHub <noreply@github.com>2021-01-18 17:09:10 +0100
commit813176fbd1de6591201a840829cb3f4ab927f754 (patch)
tree72329bea9c42ee629737a215d7f4e157896ccd46 /src/Simulator/IncrementalRedstoneSimulator/ForEachSourceCallback.cpp
parentFixed horse UI desync when taking saddle out (#5108) (diff)
downloadcuberite-813176fbd1de6591201a840829cb3f4ab927f754.tar
cuberite-813176fbd1de6591201a840829cb3f4ab927f754.tar.gz
cuberite-813176fbd1de6591201a840829cb3f4ab927f754.tar.bz2
cuberite-813176fbd1de6591201a840829cb3f4ab927f754.tar.lz
cuberite-813176fbd1de6591201a840829cb3f4ab927f754.tar.xz
cuberite-813176fbd1de6591201a840829cb3f4ab927f754.tar.zst
cuberite-813176fbd1de6591201a840829cb3f4ab927f754.zip
Diffstat (limited to 'src/Simulator/IncrementalRedstoneSimulator/ForEachSourceCallback.cpp')
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator/ForEachSourceCallback.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator/ForEachSourceCallback.cpp b/src/Simulator/IncrementalRedstoneSimulator/ForEachSourceCallback.cpp
index bb86fbcc6..3afa42532 100644
--- a/src/Simulator/IncrementalRedstoneSimulator/ForEachSourceCallback.cpp
+++ b/src/Simulator/IncrementalRedstoneSimulator/ForEachSourceCallback.cpp
@@ -25,7 +25,7 @@ ForEachSourceCallback::ForEachSourceCallback(const cChunk & Chunk, const Vector3
void ForEachSourceCallback::operator()(Vector3i Location)
{
- if (!cChunk::IsValidHeight(Location.y))
+ if (!cChunkDef::IsValidHeight(Location.y))
{
return;
}
@@ -121,7 +121,7 @@ PowerLevel ForEachSourceCallback::QueryLinkedPower(const cChunk & Chunk, const V
for (const auto & Offset : cSimulator::GetLinkedOffsets(SolidBlockPosition - QueryPosition))
{
auto SourcePosition = QueryPosition + Offset;
- if (!cChunk::IsValidHeight(SourcePosition.y))
+ if (!cChunkDef::IsValidHeight(SourcePosition.y))
{
continue;
}