Skip to content

Commit

Permalink
DP | Not working moment
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik0-0 committed Aug 30, 2024
1 parent 16c5e75 commit d80d82b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
scoreboard players add tick nn_lobbymusic 1
execute if score tick nn_lobbymusic >= max nn_lobbymusic run scoreboard players add track_number 1
execute if score tick nn_lobbymusic >= max nn_lobbymusic run scoreboard players add track_number nn_lobbymusic 1
scoreboard players set __found_case__ __variable__ 0
execute store result storage nnb_main:__storage__ switch_key int 1 run scoreboard players get track_number nn_lobbymusic
function nnb_main:__private__/switch_case/0/select with storage nnb_main:__storage__
Expand Down
2 changes: 1 addition & 1 deletion nnb_main/main.jmc
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function lobby_music() {

if (nn_lobby:phase = 1) {
scoreboard players add tick nn_lobbymusic 1;
if (nn_lobbymusic:tick >= nn_lobbymusic:max) {scoreboard players add track_number 1;}
if (nn_lobbymusic:tick >= nn_lobbymusic:max) {scoreboard players add track_number nn_lobbymusic 1;}

switch (nn_lobbymusic:track_number) {
case 1:
Expand Down

0 comments on commit d80d82b

Please sign in to comment.