We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe4986b commit 98fad11Copy full SHA for 98fad11
common/src/main/java/com/viaversion/viabackwards/protocol/v1_17to1_16_4/storage/PlayerLastCursorItem.java
@@ -18,7 +18,6 @@
18
package com.viaversion.viabackwards.protocol.v1_17to1_16_4.storage;
19
20
import com.viaversion.viaversion.api.connection.StorableObject;
21
-import com.viaversion.viaversion.api.minecraft.item.DataItem;
22
import com.viaversion.viaversion.api.minecraft.item.Item;
23
24
public class PlayerLastCursorItem implements StorableObject {
@@ -45,8 +44,6 @@ private static Item copyItem(Item item) {
45
44
if (item == null) {
46
return null;
47
}
48
- Item copy = new DataItem(item);
49
- copy.setTag(copy.tag() == null ? null : copy.tag().copy());
50
- return copy;
+ return item.copy();
51
52
-}
+}
0 commit comments