Fixed diagonal redstone powering (#5363)

* Fixed diagonal redstone powering
* Transparent blocks don't transmit downwards
This commit is contained in:
Michal Havlíček 2022-01-02 17:37:39 +01:00 committed by GitHub
parent 9245ab7e05
commit 9f2a198a62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ feyokorenhof
Gareth Nelson
GefaketHD
HaoTNN
havel06 (Michal Havlíček)
Howaner
ion232 (Arran Ireland)
jan64

View File

@ -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)
{