Skip to content

Commit

Permalink
fix: nan in worlds list
Browse files Browse the repository at this point in the history
  • Loading branch information
L3P3 committed Nov 11, 2023
1 parent bea9ce4 commit 0ddf656
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "minicraft",
"version": "0.8.0",
"version": "0.8.1",
"description": "voxel-based 3d game, written in javascript",
"homepage": "https://l3p3.de/minicraft",
"repository": {
Expand Down
10 changes: 10 additions & 0 deletions src/externs.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,3 +278,13 @@ var ASSETS;
}}
*/
var TYPE_WORLD_META;

/**
@typedef {{
account_name: string,
id: number,
label: string,
modified: number,
}}
*/
var TYPE_WORLD_LISTING;
5 changes: 5 additions & 0 deletions src/game/c_menu_start.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ export default function MenuStart({
[refreshes],
null
);
/**
@type {{
value: ?Array<TYPE_WORLD_LISTING>,
}}
*/
const world_list_last_ref = API && hook_static({
value: null,
});
Expand Down

0 comments on commit 0ddf656

Please sign in to comment.