mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2025-02-01 23:32:01 +01:00
Load legacy mappings from dir if present
This commit is contained in:
parent
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user