mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-06-08 22:12:56 +00:00
fix: compile error
This commit is contained in:
parent
2653c1d1ba
commit
fa79777406
|
|
@ -56,7 +56,7 @@ bool ReedTile::mayPlace(Level *level, int x, int y, int z)
|
|||
{
|
||||
int below = level->getTile(x, y - 1, z);
|
||||
if (below == id) return true;
|
||||
if (below != Tile::grass_Id && below != Tile::dirt_Id && below != Tile::sand_Id&& below != Tile::podzol_Id) return false;
|
||||
if (below != Tile::grass_Id && below != Tile::dirt_Id && below != Tile::sand_Id) return false;
|
||||
if (level->getMaterial(x - 1, y - 1, z) == Material::water) return true;
|
||||
if (level->getMaterial(x + 1, y - 1, z) == Material::water) return true;
|
||||
if (level->getMaterial(x, y - 1, z - 1) == Material::water) return true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue