Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 00:22:51 +01:00
Fix trim material ids at tail
Dieser Commit ist enthalten in:
Ursprung
b78f9d350b
Commit
c5e6fa7d0c
@ -27,11 +27,11 @@ public final class TrimMaterials1_20_3 {
|
||||
"copper",
|
||||
"diamond",
|
||||
"emerald",
|
||||
"quartz",
|
||||
"gold",
|
||||
"iron",
|
||||
"lapis",
|
||||
"netherite",
|
||||
"quartz",
|
||||
"redstone"
|
||||
);
|
||||
|
||||
|
@ -892,6 +892,7 @@ public final class BlockItemPacketRewriter1_20_5 extends ItemRewriter<Clientboun
|
||||
if (id == -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
materialHolder = Holder.of(id);
|
||||
} else if (materialTag instanceof CompoundTag) {
|
||||
final CompoundTag materialCompoundTag = (CompoundTag) materialTag;
|
||||
|
@ -668,6 +668,7 @@ public final class StructuredDataConverter {
|
||||
if (unmappedId != -1) {
|
||||
return unmappedId;
|
||||
}
|
||||
|
||||
final IntTag itemBackupTag = tag.getIntTag(ITEM_BACKUP_TAG_KEY);
|
||||
if (itemBackupTag != null) {
|
||||
tag.remove(ITEM_BACKUP_TAG_KEY);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren