mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-10-06 05:57:56 +02:00
Fix 1.13 item mapping
This commit is contained in:
parent
b2df8fc0d9
commit
7578671fc6
@ -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);
|
super.handleItemToServer(item);
|
||||||
// Mapped with original data, we can return here
|
// Mapped with original data, we can return here
|
||||||
if (item.getIdentifier() != rawId) return item;
|
if (item.getIdentifier() != rawId) return item;
|
||||||
|
|
||||||
|
// Set to legacy id again
|
||||||
|
item.setIdentifier(identifier);
|
||||||
|
|
||||||
int newId = -1;
|
int newId = -1;
|
||||||
if (!MappingData.oldToNewItems.containsKey(rawId)) {
|
if (!MappingData.oldToNewItems.containsKey(rawId)) {
|
||||||
if (!isDamageable(item.getIdentifier()) && item.getIdentifier() != 358) { // Map
|
if (!isDamageable(item.getIdentifier()) && item.getIdentifier() != 358) { // Map
|
||||||
|
Loading…
Reference in New Issue
Block a user