mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-12-23 17:08:00 +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;
|
package com.viaversion.viabackwards.protocol.v1_17to1_16_4.storage;
|
||||||
|
|
||||||
import com.viaversion.viaversion.api.connection.StorableObject;
|
import com.viaversion.viaversion.api.connection.StorableObject;
|
||||||
import com.viaversion.viaversion.api.minecraft.item.DataItem;
|
|
||||||
import com.viaversion.viaversion.api.minecraft.item.Item;
|
import com.viaversion.viaversion.api.minecraft.item.Item;
|
||||||
|
|
||||||
public class PlayerLastCursorItem implements StorableObject {
|
public class PlayerLastCursorItem implements StorableObject {
|
||||||
@ -45,8 +44,6 @@ public class PlayerLastCursorItem implements StorableObject {
|
|||||||
if (item == null) {
|
if (item == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
Item copy = new DataItem(item);
|
return item.copy();
|
||||||
copy.setTag(copy.tag() == null ? null : copy.tag().copy());
|
|
||||||
return copy;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user