mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-06-09 00:33:00 +00:00
fixed Torches can be placed on top of all type of fences
This commit is contained in:
parent
a6cdeec75c
commit
f31a5235a4
|
|
@ -75,7 +75,8 @@ bool TorchTile::isConnection(Level *level, int x, int y, int z)
|
|||
return true;
|
||||
}
|
||||
int tile = level->getTile(x, y, z);
|
||||
if (tile == Tile::fence_Id || tile == Tile::netherFence_Id
|
||||
Tile *below = (tile >= 0 && tile < Tile::TILE_NUM_COUNT) ? Tile::tiles[tile] : nullptr;
|
||||
if (below != nullptr && below->getRenderShape() == Tile::SHAPE_FENCE
|
||||
|| tile == Tile::glass_Id || tile == Tile::cobbleWall_Id)
|
||||
{
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue