mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-04 23:32:55 +08:00
perf: class initializer may be static
This commit is contained in:
parent
4f1ad7b576
commit
e4123f47d6
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user