diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/v1_8to1_9/Protocol1_8To1_9.java b/common/src/main/java/com/viaversion/viaversion/protocols/v1_8to1_9/Protocol1_8To1_9.java index 75ea73d04..dd4eb2a40 100644 --- a/common/src/main/java/com/viaversion/viaversion/protocols/v1_8to1_9/Protocol1_8To1_9.java +++ b/common/src/main/java/com/viaversion/viaversion/protocols/v1_8to1_9/Protocol1_8To1_9.java @@ -18,10 +18,8 @@ package com.viaversion.viaversion.protocols.v1_8to1_9; import com.google.gson.JsonElement; -import com.viaversion.viaversion.api.Via; import com.viaversion.viaversion.api.connection.UserConnection; import com.viaversion.viaversion.api.minecraft.ClientWorld; -import com.viaversion.viaversion.api.minecraft.item.Item; import com.viaversion.viaversion.api.platform.providers.ViaProviders; import com.viaversion.viaversion.api.protocol.AbstractProtocol; import com.viaversion.viaversion.api.protocol.packet.PacketWrapper; @@ -68,10 +66,6 @@ public class Protocol1_8To1_9 extends AbstractProtocol { - Item item = Protocol1_8To1_9.getHandItem(wrapper.user()); + Item item = Via.getManager().getProviders().get(HandItemProvider.class).getHandItem(wrapper.user()); wrapper.write(Types.ITEM1_8, item); // 3 - Item }); map(Types.UNSIGNED_BYTE); // 4 - X