Skip to content

Commit

Permalink
fix: deprecated keys cannot be found when looking up dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
BrookJeynes committed Dec 24, 2024
1 parent 132fe77 commit 3dceeaa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions public/map_labyrinth/tilemapresource.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<TileMap version="1.0.0" tilemapservice="http://tms.osgeo.org/1.0.0">
<Title>map_labyrinth_large.png</Title>
<Title>map_labyrinth.png</Title>
<Abstract></Abstract>
<SRS></SRS>
<BoundingBox minx="0.00000000000000" miny="-12000.00000000000000" maxx="12000.00000000000000" maxy="0.00000000000000"/>
Expand All @@ -16,4 +16,4 @@
<TileSet href="6" units-per-pixel="1.00000000000000" order="6"/>
</TileSets>
</TileMap>


10 changes: 5 additions & 5 deletions src/components/CollectablesTracker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ export default function CollectablesTracker() {
<h2 className="text-md font-bold">Locations</h2>
<span>
Gordo Slimes {
found.gordos.filter(key => gordos[key].dimension === current_map).length
found.gordos.filter(key => gordos[key]?.dimension === current_map).length
} / {
Object.values(gordos).filter(gordo => gordo.dimension === current_map).length
}
</span>
<span>
Locked Doors {
found.locked_doors.filter(key => locked_doors[key].dimension === current_map).length
found.locked_doors.filter(key => locked_doors[key]?.dimension === current_map).length
} / {
Object.values(locked_doors).filter(locked_door => locked_door.dimension === current_map).length
}
Expand All @@ -48,21 +48,21 @@ export default function CollectablesTracker() {
<h2 className="text-md font-bold">Collectables</h2>
<span>
Map Nodes {
found.map_nodes.filter(key => map_nodes[key].dimension === current_map).length
found.map_nodes.filter(key => map_nodes[key]?.dimension === current_map).length
} / {
Object.values(map_nodes).filter(map_node => map_node.dimension === current_map).length
}
</span>
<span>
Treasure Pods {
found.treasure_pods.filter(key => treasure_pods[key].dimension === current_map).length
found.treasure_pods.filter(key => treasure_pods[key]?.dimension === current_map).length
} / {
Object.values(treasure_pods).filter(treasure_pod => treasure_pod.dimension === current_map).length
}
</span>
<span>
Research Drones {
found.research_drones.filter(key => research_drones[key].dimension === current_map).length
found.research_drones.filter(key => research_drones[key]?.dimension === current_map).length
} / {
Object.values(research_drones).filter(research_drone => research_drone.dimension === current_map).length
}
Expand Down

0 comments on commit 3dceeaa

Please sign in to comment.