Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-16 04:50:08 +01:00
Fix mapping reading of changed_id type
Dieser Commit ist enthalten in:
Ursprung
d0b49009e5
Commit
95581a6fa5
@ -247,15 +247,15 @@ public class MappingDataLoader {
|
||||
final boolean fillBetween = tag.get("nofill") == null;
|
||||
mappings = holderSupplier.get(size);
|
||||
|
||||
int previousChangedId = 0;
|
||||
int nextUnhandledId = 0;
|
||||
for (int i = 0; i < changesAt.length; i++) {
|
||||
final int changedId = changesAt[i];
|
||||
if (fillBetween) {
|
||||
// Fill from after the last change to before this change with unchanged ids
|
||||
for (int id = previousChangedId + 1; id < changedId; id++) {
|
||||
for (int id = nextUnhandledId; id < changedId; id++) {
|
||||
addConsumer.addTo(mappings, id, id);
|
||||
}
|
||||
previousChangedId = changedId;
|
||||
nextUnhandledId = changedId + 1;
|
||||
}
|
||||
|
||||
// Assign the changed value
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren