Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-26 02:50:06 +01:00
Keep order of block properties (#1053)
Dieser Commit ist enthalten in:
Ursprung
22be7410fc
Commit
1c9015531f
@ -19,6 +19,7 @@ import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
@ -62,7 +63,8 @@ public class BlockTypesCache {
|
||||
this.propertiesMapArr = new AbstractProperty[maxOrdinal + 1];
|
||||
int prop_arr_i = 0;
|
||||
this.propertiesArr = new AbstractProperty[properties.size()];
|
||||
HashMap<String, AbstractProperty<?>> propMap = new HashMap<>();
|
||||
// Preserve properties order with LinkedHashMap
|
||||
HashMap<String, AbstractProperty<?>> propMap = new LinkedHashMap<>();
|
||||
|
||||
int bitOffset = 0;
|
||||
for (Map.Entry<String, ? extends Property<?>> entry : properties.entrySet()) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren