Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-09-19 02:30:03 +02:00
Load legacy mappings from dir if present
Dieser Commit ist enthalten in:
Ursprung
345d78976a
Commit
0cb41c970b
@ -37,7 +37,7 @@ public abstract class LegacyBlockItemRewriter<T extends BackwardsProtocol> exten
|
|||||||
protected final Map<Integer, MappedLegacyBlockItem> replacementData;
|
protected final Map<Integer, MappedLegacyBlockItem> replacementData;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
JsonObject jsonObject = VBMappingDataLoader.loadData("legacy-mappings.json");
|
JsonObject jsonObject = VBMappingDataLoader.loadFromDataDir("legacy-mappings.json");
|
||||||
for (Map.Entry<String, JsonElement> entry : jsonObject.entrySet()) {
|
for (Map.Entry<String, JsonElement> entry : jsonObject.entrySet()) {
|
||||||
Map<Integer, MappedLegacyBlockItem> mappings = new HashMap<>();
|
Map<Integer, MappedLegacyBlockItem> mappings = new HashMap<>();
|
||||||
LEGACY_MAPPINGS.put(entry.getKey(), mappings);
|
LEGACY_MAPPINGS.put(entry.getKey(), mappings);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren