From d61372c041b931a715cdf5b69fae765e273691b7 Mon Sep 17 00:00:00 2001 From: SweetSea-ButImNotSweet <106439598+SweetSea-ButImNotSweet@users.noreply.github.com> Date: Sun, 7 Jan 2024 19:29:45 +0700 Subject: [PATCH] Small tweak --- parts/player/draw.lua | 2 +- parts/scenes/mod.lua | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/parts/player/draw.lua b/parts/player/draw.lua index 60e3016c..19c712a1 100644 --- a/parts/player/draw.lua +++ b/parts/player/draw.lua @@ -787,7 +787,7 @@ function draw.norm(P,repMode) gc_scale(P.size) -- Draw username - if GAME.modUsed and P.frameRun>480 or true then + if GAME.modUsed and P.frameRun>GAME.modUsed*2.6 or not GAME.modUsed then setFont(30) gc_setColor(GROUP_COLORS[P.group]) GC.mStr(P.username or USERS.getUsername(P.uid),300,-60) diff --git a/parts/scenes/mod.lua b/parts/scenes/mod.lua index ed3d22d0..763815fb 100644 --- a/parts/scenes/mod.lua +++ b/parts/scenes/mod.lua @@ -24,7 +24,12 @@ function scene.enter() BG.set('tunnel') end function scene.back() - GAME.modUsed=usingMod() + local totalModUsed=0 + for i=1,#GAME.mod do + if GAME.mod[i]>0 then totalModUsed=totalModUsed+1 + end + end + GAME.modUsed=totalModUsed>0 and totalModUsed or false end function scene.mouseMove(x,y)