Update leftover Via usage

This commit is contained in:
Nassim Jahnke 2021-11-17 11:18:46 +01:00
parent ce6ca4dc0f
commit 71f4012537
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -102,7 +102,7 @@ public class BackwardsMappings extends com.viaversion.viabackwards.api.data.Back
int[] oldToNew = new int[8582];
Arrays.fill(oldToNew, -1);
mapIdentifiers(oldToNew, oldMappings.getAsJsonObject("blockstates"), newMappings.getAsJsonObject("blocks"), diffMappings.getAsJsonObject("blockstates"));
return new IntArrayMappings(oldToNew);
return IntArrayMappings.of(oldToNew, -1);
} else {
return super.loadFromObject(oldMappings, newMappings, diffMappings, key);
}