fix(lobby,easter-egg): update portal coordinates and egg-check ring
Lobby portal zones and signs moved to the rebuilt portal area at ~(436..488, 65..74, -322..-281), including a second Lyla's-World "Super Kitties" portal. Signs now use per-portal facing_direction so they face the hub walkway correctly. Easter-egg placeAllEggs validation now samples the far-ring eggs (indices 45-49) before falling back to the near ring — avoids false "blocks missing" reports when only close-ring eggs have been picked up. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -240,8 +240,14 @@ function placeAllEggs(playerPos) {
|
||||
// Validate at least one stored egg block actually exists
|
||||
const stored = getEggPositions();
|
||||
if (stored && stored.length > 0) {
|
||||
// Check far-ring eggs (last 5) — they're hardest to reach and least likely
|
||||
// to have been collected yet. Avoids false "blocks missing" detection when
|
||||
// only the close-ring eggs (1-5) have been collected.
|
||||
let found = 0;
|
||||
for (let i = 0; i < Math.min(5, stored.length); i++) {
|
||||
const checkAt = [45, 46, 47, 48, 49].filter(i => i < stored.length);
|
||||
const fallback = checkAt.length === 0;
|
||||
const indices = fallback ? [0, 1, 2, 3, 4].filter(i => i < stored.length) : checkAt;
|
||||
for (const i of indices) {
|
||||
try {
|
||||
const block = overworld.getBlock({ x: stored[i].x, y: stored[i].y, z: stored[i].z });
|
||||
if (block && block.typeId.includes("glazed_terracotta")) found++;
|
||||
|
||||
Reference in New Issue
Block a user