mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2024-11-14 19:15:08 -05:00
Updated Via API usage
This commit is contained in:
parent
215c5fba4f
commit
581160fa3f
1 changed files with 1 additions and 1 deletions
|
@ -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")) {
|
||||
|
|
Loading…
Reference in a new issue