mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-12-18 16:17:45 +01:00
Update Via API usage (#760)
This commit is contained in:
parent
fe4986b042
commit
98fad11060
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user