@terrafirmagreg-team/game 1.2.8 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@terrafirmagreg-team/game",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "type": "module",
5
5
  "description": "Game-data components and catalogs",
6
6
  "license": "LGPL-3.0-only",
@@ -25,13 +25,13 @@
25
25
  "./styles.css": "./styles.css"
26
26
  },
27
27
  "dependencies": {
28
- "@terrafirmagreg-team/data": "^1.2.6",
29
- "@terrafirmagreg-team/dump": "^1.2.13",
30
- "@terrafirmagreg-team/kit": "^1.2.19",
28
+ "@terrafirmagreg-team/data": "^1.2.10",
29
+ "@terrafirmagreg-team/dump": "^1.2.14",
30
+ "@terrafirmagreg-team/kit": "^1.2.22",
31
31
  "@terrafirmagreg-team/search": "^1.2.7",
32
32
  "@terrafirmagreg-team/sites": "^1.2.3",
33
- "@terrafirmagreg-team/translate": "^1.2.10",
34
- "@terrafirmagreg-team/ui": "^1.2.13",
33
+ "@terrafirmagreg-team/translate": "^1.2.11",
34
+ "@terrafirmagreg-team/ui": "^1.2.16",
35
35
  "lucide-react": "^1.70.0",
36
36
  "server-only": "^0.0.1"
37
37
  },
@@ -8,7 +8,7 @@ import {
8
8
  import { clientDumpLang } from '@terrafirmagreg-team/dump/lib/dump/client/dump';
9
9
  import {
10
10
  clientRegistryKindFor,
11
- loadClientRegistry,
11
+ loadClientRegistryEntry,
12
12
  } from '@terrafirmagreg-team/dump/lib/dump/client/registry';
13
13
  import type { DumpDisplay } from '@terrafirmagreg-team/dump/lib/dump/contract/text';
14
14
  import {
@@ -26,15 +26,19 @@ export const loadStackDisplay = createDatasetCache(
26
26
  ): Promise<DumpDisplay | undefined> => {
27
27
  const parsed = parseStackId(compactId);
28
28
  const ofKind = async (registry: 'items' | 'fluids') => {
29
- const entry = (await loadClientRegistry(dataset, registry)).get(
29
+ const entry = await loadClientRegistryEntry(
30
+ dataset,
31
+ registry,
30
32
  parsed.id,
31
33
  );
32
34
  return entry ? displayOf(entry, parsed.nbt) : undefined;
33
35
  };
34
36
  if (kind) {
35
- const entry = (
36
- await loadClientRegistry(dataset, clientRegistryKindFor(kind))
37
- ).get(parsed.id);
37
+ const entry = await loadClientRegistryEntry(
38
+ dataset,
39
+ clientRegistryKindFor(kind),
40
+ parsed.id,
41
+ );
38
42
  return entry ? displayOf(entry, parsed.nbt) : undefined;
39
43
  }
40
44
  return (await ofKind('items')) ?? (await ofKind('fluids'));