Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-12-26 16:12:43 +01:00
Ursprung
8dfacde007
Commit
15348f659a
@ -35,7 +35,8 @@ public class BackwardsMappings extends MappingData {
|
|||||||
if (diffMappings != null) {
|
if (diffMappings != null) {
|
||||||
JsonObject diffItems = diffMappings.getAsJsonObject("items");
|
JsonObject diffItems = diffMappings.getAsJsonObject("items");
|
||||||
if (diffItems != null) {
|
if (diffItems != null) {
|
||||||
backwardsItemMappings = VBMappingDataLoader.loadItemMappings(oldMappings.getAsJsonObject("items"), newMappings.getAsJsonObject("items"), diffItems, true);
|
backwardsItemMappings = VBMappingDataLoader.loadItemMappings(oldMappings.getAsJsonObject("items"),
|
||||||
|
newMappings.getAsJsonObject("items"), diffItems, shouldWarnOnMissing("items"));
|
||||||
}
|
}
|
||||||
|
|
||||||
JsonObject diffSounds = diffMappings.getAsJsonObject("sounds");
|
JsonObject diffSounds = diffMappings.getAsJsonObject("sounds");
|
||||||
|
@ -105,6 +105,11 @@ public class BackwardsMappings extends nl.matsv.viabackwards.api.data.BackwardsM
|
|||||||
return mappedId;
|
return mappedId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected boolean shouldWarnOnMissing(String key) {
|
||||||
|
return super.shouldWarnOnMissing(key) && !key.equals("items");
|
||||||
|
}
|
||||||
|
|
||||||
public Int2ObjectMap<String> getStatisticMappings() {
|
public Int2ObjectMap<String> getStatisticMappings() {
|
||||||
return statisticMappings;
|
return statisticMappings;
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren