Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-19 14:30:16 +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",
|
"copper",
|
||||||
"diamond",
|
"diamond",
|
||||||
"emerald",
|
"emerald",
|
||||||
"quartz",
|
|
||||||
"gold",
|
"gold",
|
||||||
"iron",
|
"iron",
|
||||||
"lapis",
|
"lapis",
|
||||||
"netherite",
|
"netherite",
|
||||||
|
"quartz",
|
||||||
"redstone"
|
"redstone"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -892,6 +892,7 @@ public final class BlockItemPacketRewriter1_20_5 extends ItemRewriter<Clientboun
|
|||||||
if (id == -1) {
|
if (id == -1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
materialHolder = Holder.of(id);
|
materialHolder = Holder.of(id);
|
||||||
} else if (materialTag instanceof CompoundTag) {
|
} else if (materialTag instanceof CompoundTag) {
|
||||||
final CompoundTag materialCompoundTag = (CompoundTag) materialTag;
|
final CompoundTag materialCompoundTag = (CompoundTag) materialTag;
|
||||||
|
@ -668,6 +668,7 @@ public final class StructuredDataConverter {
|
|||||||
if (unmappedId != -1) {
|
if (unmappedId != -1) {
|
||||||
return unmappedId;
|
return unmappedId;
|
||||||
}
|
}
|
||||||
|
|
||||||
final IntTag itemBackupTag = tag.getIntTag(ITEM_BACKUP_TAG_KEY);
|
final IntTag itemBackupTag = tag.getIntTag(ITEM_BACKUP_TAG_KEY);
|
||||||
if (itemBackupTag != null) {
|
if (itemBackupTag != null) {
|
||||||
tag.remove(ITEM_BACKUP_TAG_KEY);
|
tag.remove(ITEM_BACKUP_TAG_KEY);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren