Skip to content

Commit

Permalink
Fixed some typos and minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
gtnardy committed Jun 12, 2021
1 parent 1189164 commit 33d2cfb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
5 changes: 4 additions & 1 deletion Client/Index.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ end)

-- When package loads, verify if LocalPlayer already exists (eg. when reloading the package), then try to get and store it's controlled character
Package:Subscribe("Load", function()
Events:CallRemote("PlayerReady", {})
Timer:SetTimeout(200, function()
Events:CallRemote("PlayerReady", {})
return false
end)

if (NanosWorld:GetLocalPlayer() ~= nil) then
UpdateLocalCharacter(NanosWorld:GetLocalPlayer():GetControlledCharacter())
Expand Down
10 changes: 5 additions & 5 deletions Client/UI/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,22 +96,22 @@ function SortScoreboard() {
}

// Fix the scoreboard at the top of the screen with the sorted data
for (let i = 0,; i < 10; i++) {
for (let i = 0; i < 10; i++) {
let name = "";
let score = "";

if (i < store.length) {
name = store[i][1].cells[1];
score = store[i][1].cells[2];
name = store[i][1].cells[1].innerText;
score = store[i][1].cells[2].innerText;
}

const rank_entry = document.getElementById(`scoreboard_rank_entry_${i}`);

const rank_entry_image = rank_entry.querySelector(".scoreboard_rank_image");
rank_entry_image.innerHTML = name.innerText.substring(0, 3).toUpperCase();
rank_entry_image.innerHTML = name.substring(0, 3).toUpperCase();

const rank_entry_score = rank_entry.querySelector(".scoreboard_rank_score");
rank_entry_score.innerHTML = score.innerText;
rank_entry_score.innerHTML = score;
}
}

Expand Down
2 changes: 1 addition & 1 deletion Package.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Contributors
author = "nanos™"
# Version
version = "1.0.1"
version = "1.0.2"
# Image URL
image = "https://i.imgur.com/vW4rOb3.jpg"
# Package Type: 'executable' (normal package) | 'library' (doesn't run - useful for code library)
Expand Down

0 comments on commit 33d2cfb

Please sign in to comment.