From 0647babc90b369b377679d83c65cee8039dcace1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Qu=E1=BB=91c=20H=C6=B0ng?= <106439598+SweetSea-ButImNotSweet@users.noreply.github.com> Date: Fri, 16 Aug 2024 09:06:43 +0700 Subject: [PATCH] Fix player's info is not updated correctly when changing name --- scene/name_entry.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/name_entry.lua b/scene/name_entry.lua index 141752a..5fdf0b4 100644 --- a/scene/name_entry.lua +++ b/scene/name_entry.lua @@ -161,8 +161,8 @@ function NameEntryScene:onInputPress(e) self.name_entry[self.entry_pos] = string.upper(e.key) self.name_entry[self.entry_pos + 1] = string.upper(e.key) end - if self.entry_pos == 3 then self:getPlayInfo(name) end self.entry_pos = math.min(self.entry_pos + 1, 4) + if self.entry_pos == 4 then self:getPlayInfo(string.lower(table.concat(self.name_entry, '', 1, 3))) end end elseif e.input == "menu_decide" or e.input == "rotate_left" or e.scancode == "return" then if self.entry_pos == 4 then