diff --git a/Minecraft.World/PortalTile.cpp b/Minecraft.World/PortalTile.cpp index 186e6e173..c7c37085f 100644 --- a/Minecraft.World/PortalTile.cpp +++ b/Minecraft.World/PortalTile.cpp @@ -130,17 +130,17 @@ bool PortalTile::trySpawnPortal(Level *level, int x, int y, int z, bool actually if (!twoPosible) { - if (!PortalTile::validPortalFrame(level, x, y, z, xd, zd, actuallySpawn)) return false; + if (!validPortalFrame(level, x, y, z, xd, zd, actuallySpawn)) return false; } else { - if (!PortalTile::validPortalFrame(level, x, y, z, xd, 0, actuallySpawn)) + if (!validPortalFrame(level, x, y, z, xd, 0, actuallySpawn)) { if (changedx) x++; // revert x (this check wants to check z not x and z) if (level->getTile(x, y, z - zd) == 0) z--; - if (!PortalTile::validPortalFrame(level, x, y, z, 0, zd, actuallySpawn)) + if (!validPortalFrame(level, x, y, z, 0, zd, actuallySpawn)) return false; } }