From 6d669bd47a2e54f92c6828237aa0a137bc0db5f3 Mon Sep 17 00:00:00 2001 From: "Breno A." Date: Sun, 9 Jun 2024 09:19:41 -0300 Subject: [PATCH] refactor: Integer.ParseInt is more appropriate here --- .../emu/grasscutter/game/quest/exec/ExecDecQuestGlobalVar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/emu/grasscutter/game/quest/exec/ExecDecQuestGlobalVar.java b/src/main/java/emu/grasscutter/game/quest/exec/ExecDecQuestGlobalVar.java index c4e986476..ef11c0e93 100644 --- a/src/main/java/emu/grasscutter/game/quest/exec/ExecDecQuestGlobalVar.java +++ b/src/main/java/emu/grasscutter/game/quest/exec/ExecDecQuestGlobalVar.java @@ -12,7 +12,7 @@ public class ExecDecQuestGlobalVar extends QuestExecHandler { quest .getOwner() .getQuestManager() - .decQuestGlobalVarValue(Integer.valueOf(paramStr[0]), Integer.valueOf(paramStr[1])); + .decQuestGlobalVarValue(Integer.parseInt(paramStr[0]), Integer.parseInt(paramStr[1])); return true; } }