From e4123f47d60e2e85bdc35aa550615a43a268c3a6 Mon Sep 17 00:00:00 2001 From: "Breno A." Date: Sun, 9 Jun 2024 09:39:46 -0300 Subject: [PATCH] perf: class initializer may be static --- src/main/java/emu/grasscutter/game/systems/InventorySystem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/emu/grasscutter/game/systems/InventorySystem.java b/src/main/java/emu/grasscutter/game/systems/InventorySystem.java index cd86e429f..cdbfc22cd 100644 --- a/src/main/java/emu/grasscutter/game/systems/InventorySystem.java +++ b/src/main/java/emu/grasscutter/game/systems/InventorySystem.java @@ -25,7 +25,7 @@ import lombok.val; public class InventorySystem extends BaseGameSystem { private static final Int2IntMap weaponRefundMaterials = new Int2IntArrayMap(); - { + static { // Use a sorted map, use exp as key to sort by exp // We want to have weaponRefundMaterials as (id, exp) in descending exp order var temp = new Int2IntRBTreeMap(Collections.reverseOrder());