Load legacy mappings from dir if present

This commit is contained in:
KennyTV 2020-04-19 14:02:52 +02:00
parent 345d78976a
commit 0cb41c970b
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -37,7 +37,7 @@ public abstract class LegacyBlockItemRewriter<T extends BackwardsProtocol> exten
protected final Map<Integer, MappedLegacyBlockItem> replacementData;
static {
JsonObject jsonObject = VBMappingDataLoader.loadData("legacy-mappings.json");
JsonObject jsonObject = VBMappingDataLoader.loadFromDataDir("legacy-mappings.json");
for (Map.Entry<String, JsonElement> entry : jsonObject.entrySet()) {
Map<Integer, MappedLegacyBlockItem> mappings = new HashMap<>();
LEGACY_MAPPINGS.put(entry.getKey(), mappings);