mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-14 06:14:52 +00:00
Stop cloning a linked item from replacing its shared script handler
This commit is contained in:
1 parent
795464fb81
commit
32c5cc78c7
1 file changed
+1
-1
@@ -266,7 +266,7 @@ public class LinkedItem implements ILinkedItem {
|
||||
}
|
||||
|
||||
public LinkedItem clone() {
|
||||
NBTTagCompound nbt = this.writeToNBT(true);
|
||||
NBTTagCompound nbt = this.writeToNBT(false);
|
||||
LinkedItem clone = new LinkedItem(this.name);
|
||||
clone.readFromNBT(nbt);
|
||||
return clone;
|
||||
|
||||
Reference in new issue
Block a user