mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Removed debug code
removed some debug code.
This commit is contained in:
parent
b6e1a0a38d
commit
eb5fe5560e
|
|
@ -121,13 +121,11 @@ bool PortalTile::trySpawnPortal(Level* level, int x, int y, int z, bool actually
|
||||||
bool changedx = false; // changed x so it can be reverted if two portals are posible
|
bool changedx = false; // changed x so it can be reverted if two portals are posible
|
||||||
if (level->getTile(x - xd, y, z) == 0)
|
if (level->getTile(x - xd, y, z) == 0)
|
||||||
{
|
{
|
||||||
level->setTileAndData(x, y + 6, z, Tile::dirt_Id, 0, Tile::UPDATE_CLIENTS);
|
|
||||||
changedx = true;
|
changedx = true;
|
||||||
x--;
|
x--;
|
||||||
}
|
}
|
||||||
else if (level->getTile(x, y, z - zd) == 0)
|
else if (level->getTile(x, y, z - zd) == 0)
|
||||||
{
|
{
|
||||||
level->setTileAndData(x, y + 7, z, Tile::dirt_Id, 0, Tile::UPDATE_CLIENTS);
|
|
||||||
z--;
|
z--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -141,10 +139,9 @@ bool PortalTile::trySpawnPortal(Level* level, int x, int y, int z, bool actually
|
||||||
{
|
{
|
||||||
if (level->getTile(x, y, z - zd) == 0)
|
if (level->getTile(x, y, z - zd) == 0)
|
||||||
{
|
{
|
||||||
level->setTileAndData(x, y + 7, z, Tile::dirt_Id, 0, Tile::UPDATE_CLIENTS);
|
|
||||||
z--;
|
z--;
|
||||||
}
|
}
|
||||||
if (changedx) x++;
|
if (changedx) x++; // revert x (this check wants to check z not x and z)
|
||||||
if (!PortalTile::validPortalFrame(level, x, y, z, 0, zd, actuallySpawn))
|
if (!PortalTile::validPortalFrame(level, x, y, z, 0, zd, actuallySpawn))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue