mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-06 23:33:09 +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 {
|
public class InventorySystem extends BaseGameSystem {
|
||||||
private static final Int2IntMap weaponRefundMaterials = new Int2IntArrayMap();
|
private static final Int2IntMap weaponRefundMaterials = new Int2IntArrayMap();
|
||||||
|
|
||||||
{
|
static {
|
||||||
// Use a sorted map, use exp as key to sort by exp
|
// Use a sorted map, use exp as key to sort by exp
|
||||||
// We want to have weaponRefundMaterials as (id, exp) in descending exp order
|
// We want to have weaponRefundMaterials as (id, exp) in descending exp order
|
||||||
var temp = new Int2IntRBTreeMap(Collections.reverseOrder());
|
var temp = new Int2IntRBTreeMap(Collections.reverseOrder());
|
||||||
|
Loading…
Reference in New Issue
Block a user