Remove temporary goat horn fix

This commit is contained in:
FlorianMichael 2024-04-03 20:03:03 +02:00 committed by Nassim Jahnke
parent 67e6e1a2e3
commit 228689f181
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F

View File

@ -275,14 +275,8 @@ public final class BlockItemPacketRewriter1_20_5 extends ItemRewriter<Clientboun
final StructuredItem item = new StructuredItem(old.identifier(), (byte) old.amount(), new StructuredDataContainer()); final StructuredItem item = new StructuredItem(old.identifier(), (byte) old.amount(), new StructuredDataContainer());
final StructuredDataContainer data = item.structuredData(); final StructuredDataContainer data = item.structuredData();
data.setIdLookup(protocol, true); data.setIdLookup(protocol, true);
//TODO add default data if needed, e.g. when getting an item via /give without extra data
// Goat horn
// (check more)
if (tag == null) { if (tag == null) {
if (old.identifier() == 1191) {
// I'm unsure if this is intended or an issue, see https://bugs.mojang.com/browse/MC-269503
data.set(StructuredDataKey.INSTRUMENT, Holder.of(Instruments1_20_3.keyToId("minecraft:ponder_goat_horn")));
}
return item; return item;
} }