Updated Via API usage

This commit is contained in:
RaphiMC 2024-06-07 15:52:17 +02:00
parent 215c5fba4f
commit 581160fa3f
No known key found for this signature in database
GPG key ID: 0F6BB0657A03AC94

View file

@ -130,7 +130,7 @@ public abstract class MixinBlockItemPacketRewriter1_20_5 extends ItemRewriter<Cl
@Inject(method = "toStructuredItem", at = @At("RETURN"))
private void appendItemDataFixComponents(UserConnection user, Item old, CallbackInfoReturnable<Item> cir) {
final StructuredDataContainer data = cir.getReturnValue().structuredData();
final StructuredDataContainer data = cir.getReturnValue().dataContainer();
final String identifier = this.protocol.getMappingData().getFullItemMappings().identifier(cir.getReturnValue().identifier());
if (user.getProtocolInfo().serverProtocolVersion().olderThanOrEqualTo(ProtocolVersion.v1_17_1)) {
if (identifier.equals("minecraft:crossbow")) {