Skip to content

Commit

Permalink
* Fix a small bug, add smoke particles on burnout
Browse files Browse the repository at this point in the history
  • Loading branch information
iProgramMC committed Apr 7, 2024
1 parent f06e1f4 commit ee4318c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion source/world/tile/RedStoneTorchTile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,13 @@ void RedStoneTorchTile::tick(Level* level, int x, int y, int z, Random* random)

if (checkBurnOut(level, x, y, z, true))
{
// TODO - Particle related
level->addParticle(
"smoke",
float(x) + random->nextFloat() * 0.6f + 0.2f,
float(y) + random->nextFloat() * 0.6f + 0.2f,
float(z) + random->nextFloat() * 0.6f + 0.2f,
0.0f, 0.0f, 0.0f
);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion source/world/tile/WireTile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ int WireTile::getConnections(LevelSource* level, int x, int y, int z)
}

// check below:
if (level->isSolidTile(x + checkXD[i], y, z + checkXD[i]))
if (level->isSolidTile(x + checkXD[i], y, z + checkZD[i]))
continue;

if (level->getTile(x + checkXD[i], y - 1, z + checkZD[i]) == m_ID)
Expand Down

0 comments on commit ee4318c

Please sign in to comment.