3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-07-26 17:08:05 +02:00

Fix 1.13 item mapping

Dieser Commit ist enthalten in:
KennyTV 2020-01-27 09:03:03 +01:00
Ursprung b2df8fc0d9
Commit 7578671fc6

Datei anzeigen

@ -823,10 +823,16 @@ public class BlockItemPackets1_13 extends nl.matsv.viabackwards.api.rewriters.It
}
}
// Handle custom mappings
int identifier = item.getIdentifier();
item.setIdentifier(rawId);
super.handleItemToServer(item);
// Mapped with original data, we can return here
if (item.getIdentifier() != rawId) return item;
// Set to legacy id again
item.setIdentifier(identifier);
int newId = -1;
if (!MappingData.oldToNewItems.containsKey(rawId)) {
if (!isDamageable(item.getIdentifier()) && item.getIdentifier() != 358) { // Map