Update Via API usage (#760)

This commit is contained in:
RK_01 2024-05-27 13:35:14 +02:00 committed by GitHub
parent fe4986b042
commit 98fad11060
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,7 +18,6 @@
package com.viaversion.viabackwards.protocol.v1_17to1_16_4.storage;
import com.viaversion.viaversion.api.connection.StorableObject;
import com.viaversion.viaversion.api.minecraft.item.DataItem;
import com.viaversion.viaversion.api.minecraft.item.Item;
public class PlayerLastCursorItem implements StorableObject {
@ -45,8 +44,6 @@ public class PlayerLastCursorItem implements StorableObject {
if (item == null) {
return null;
}
Item copy = new DataItem(item);
copy.setTag(copy.tag() == null ? null : copy.tag().copy());
return copy;
return item.copy();
}
}