summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Havlíček <80639037+havel06@users.noreply.github.com>2022-01-02 17:37:39 +0100
committerGitHub <noreply@github.com>2022-01-02 17:37:39 +0100
commit9f2a198a627e222be5c99ca2e5d47facfe9aacf4 (patch)
tree000e8eb757774b4af154fecf0bff3b17e74e9585
parentAlpha sort BlockInfo and Block/ItemHandler (diff)
downloadcuberite-9f2a198a627e222be5c99ca2e5d47facfe9aacf4.tar
cuberite-9f2a198a627e222be5c99ca2e5d47facfe9aacf4.tar.gz
cuberite-9f2a198a627e222be5c99ca2e5d47facfe9aacf4.tar.bz2
cuberite-9f2a198a627e222be5c99ca2e5d47facfe9aacf4.tar.lz
cuberite-9f2a198a627e222be5c99ca2e5d47facfe9aacf4.tar.xz
cuberite-9f2a198a627e222be5c99ca2e5d47facfe9aacf4.tar.zst
cuberite-9f2a198a627e222be5c99ca2e5d47facfe9aacf4.zip
Diffstat (limited to '')
-rw-r--r--CONTRIBUTORS1
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 1bf8aabfb..20a767efa 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -27,6 +27,7 @@ feyokorenhof
Gareth Nelson
GefaketHD
HaoTNN
+havel06 (Michal Havlíček)
Howaner
ion232 (Arran Ireland)
jan64
diff --git a/src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h b/src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h
index 70a546b0e..cfdecb246 100644
--- a/src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h
+++ b/src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h
@@ -146,7 +146,7 @@ namespace RedstoneWireHandler
(NeighbourChunk->GetBlock(Adjacent + OffsetYP) == E_BLOCK_REDSTONE_WIRE) // Only terrace YP with another wire
)
{
- SetDirectionState(Offset, Block, TemporaryDirection::Up);
+ SetDirectionState(Offset, Block, cBlockInfo::IsTransparent(LateralBlock) ? TemporaryDirection::Side : TemporaryDirection::Up);
if (NeighbourChunk != &Chunk)
{