Skip to content

Commit

Permalink
* Small fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
iProgramMC committed Apr 7, 2024
1 parent 845aa08 commit e8eeae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/world/tile/WireTile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ void WireTile::calculateChanges(Level* level, int x, int y, int z, int x2, int y
newPower = getStrongerSignal(level, checkX, y, checkZ, newPower);
}

if (level->isSolidTile(checkX, y, checkZ) && !level->isSolidTile(checkX, y + 1, checkZ))
if (level->isSolidTile(checkX, y, checkZ) && !level->isSolidTile(x, y + 1, z))
{
if (checkX != x2 || y + 1 != y2 || checkZ != z2)
{
Expand Down

0 comments on commit e8eeae0

Please sign in to comment.