commit
1f9908c712
|
@ -35,7 +35,8 @@ public:
|
||||||
const cVector3iArray GetTerracingConnectionOffsets(const Vector3i & a_Position)
|
const cVector3iArray GetTerracingConnectionOffsets(const Vector3i & a_Position)
|
||||||
{
|
{
|
||||||
cVector3iArray RelativePositions;
|
cVector3iArray RelativePositions;
|
||||||
bool IsYPTerracingBlocked = cBlockInfo::IsSolid(m_World.GetBlock(a_Position + OffsetYP()));
|
auto YPTerraceBlock = m_World.GetBlock(a_Position + OffsetYP());
|
||||||
|
bool IsYPTerracingBlocked = cBlockInfo::IsSolid(YPTerraceBlock) && !cBlockInfo::IsTransparent(YPTerraceBlock);
|
||||||
|
|
||||||
for (const auto & Adjacent : GetRelativeLaterals())
|
for (const auto & Adjacent : GetRelativeLaterals())
|
||||||
{
|
{
|
||||||
|
@ -46,9 +47,10 @@ public:
|
||||||
{
|
{
|
||||||
RelativePositions.emplace_back(Adjacent + OffsetYP());
|
RelativePositions.emplace_back(Adjacent + OffsetYP());
|
||||||
}
|
}
|
||||||
|
auto YMTerraceBlock = m_World.GetBlock(a_Position + Adjacent);
|
||||||
if (
|
if (
|
||||||
!cBlockInfo::IsSolid(m_World.GetBlock(a_Position + Adjacent)) && // IsYMTerracingBlocked (i.e. check block above lower terracing position, a.k.a. just the plain adjacent)
|
// IsYMTerracingBlocked (i.e. check block above lower terracing position, a.k.a. just the plain adjacent)
|
||||||
|
(!cBlockInfo::IsSolid(YMTerraceBlock) || cBlockInfo::IsTransparent(YMTerraceBlock)) &&
|
||||||
(m_World.GetBlock(a_Position + Adjacent + OffsetYM()) == E_BLOCK_REDSTONE_WIRE)
|
(m_World.GetBlock(a_Position + Adjacent + OffsetYM()) == E_BLOCK_REDSTONE_WIRE)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user