summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2020-05-08 10:46:03 +0200
committerGitHub <noreply@github.com>2020-05-08 10:46:03 +0200
commitc4ca11b372d18a9d97b1c32c5544c114116a6793 (patch)
treeedcb389555c73062f1115855451f1f35d69abc83 /src
parentRemove old Android leftovers (#4722) (diff)
downloadcuberite-c4ca11b372d18a9d97b1c32c5544c114116a6793.tar
cuberite-c4ca11b372d18a9d97b1c32c5544c114116a6793.tar.gz
cuberite-c4ca11b372d18a9d97b1c32c5544c114116a6793.tar.bz2
cuberite-c4ca11b372d18a9d97b1c32c5544c114116a6793.tar.lz
cuberite-c4ca11b372d18a9d97b1c32c5544c114116a6793.tar.xz
cuberite-c4ca11b372d18a9d97b1c32c5544c114116a6793.tar.zst
cuberite-c4ca11b372d18a9d97b1c32c5544c114116a6793.zip
Diffstat (limited to '')
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator/ObserverHandler.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator/ObserverHandler.h b/src/Simulator/IncrementalRedstoneSimulator/ObserverHandler.h
index cb5bc74fc..b4af66aff 100644
--- a/src/Simulator/IncrementalRedstoneSimulator/ObserverHandler.h
+++ b/src/Simulator/IncrementalRedstoneSimulator/ObserverHandler.h
@@ -83,13 +83,13 @@ public:
{
// Remain on for 1 tick before resetting
*DelayInfo = std::make_pair(1, false);
- a_World.SetBlockMeta(a_Position.x, a_Position.y, a_Position.z, a_Meta | 0x8, a_Meta);
+ a_World.SetBlockMeta(a_Position, a_Meta | 0x8);
}
else
{
// We've reset. Erase delay data in preparation for detecting further updates
Data->m_MechanismDelays.erase(a_Position);
- a_World.SetBlockMeta(a_Position.x, a_Position.y, a_Position.z, a_Meta & ~0x8, a_Meta);
+ a_World.SetBlockMeta(a_Position, a_Meta & ~0x8);
}
return { a_Position + cBlockObserverHandler::GetSignalOutputOffset(a_Meta) };