mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Removed Debug code
This commit is contained in:
parent
a7a1bcd16e
commit
448c918687
|
|
@ -73,7 +73,6 @@ bool PortalTile::validPortalFrame(Level* level, int x, int y, int z, int xd, int
|
|||
{
|
||||
for (int yy = -1; yy <= 3; yy++)
|
||||
{
|
||||
level->setTileAndData(x, y + 9, z, Tile::glass_Id, 0, Tile::UPDATE_CLIENTS);
|
||||
bool edge = (xx == -1) || (xx == 2) || (yy == -1) || (yy == 3);
|
||||
if ((xx == -1 || xx == 2) && (yy == -1 || yy == 3)) continue;
|
||||
|
||||
|
|
@ -138,14 +137,11 @@ bool PortalTile::trySpawnPortal(Level *level, int x, int y, int z, bool actually
|
|||
if (!PortalTile::validPortalFrame(level, x, y, z, xd, 0, actuallySpawn))
|
||||
{
|
||||
if (changedx) x++; // revert x (this check wants to check z not x and z)
|
||||
level->setTileAndData(x, y + 6, z, Tile::diamondOre_Id, 0, Tile::UPDATE_CLIENTS);
|
||||
|
||||
if (level->getTile(x, y, z - zd) == 0) z--;
|
||||
level->setTileAndData(x, y + 7, z, Tile::diamondOre_Id, 0, Tile::UPDATE_CLIENTS);
|
||||
|
||||
if (!PortalTile::validPortalFrame(level, x, y, z, 0, zd, actuallySpawn))
|
||||
return false;
|
||||
level->setTileAndData(x, y + 8, z, Tile::diamondOre_Id, 0, Tile::UPDATE_CLIENTS);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue