mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 04:59:05 +00:00
Linked Item Things
This commit is contained in:
1 parent
1ca70be090
commit
025e1ada3c
10 files changed
+624
-230
No files matched your search
@@ -317,14 +317,7 @@ public class ScriptItemStack implements IItemStack {
|
||||
return null;
|
||||
|
||||
if (item.getItem() instanceof ItemLinked) {
|
||||
LinkedItem linkedItem;
|
||||
if (item.hasTagCompound()) {
|
||||
int linkedItemId = item.getTagCompound().getInteger(LinkedItem.LINKED_NBT_TAG);
|
||||
linkedItem = LinkedItemController.Instance().get(linkedItemId);
|
||||
if (linkedItem != null) {
|
||||
return new ScriptLinkedItem(item);
|
||||
}
|
||||
}
|
||||
return new ScriptLinkedItem(item);
|
||||
}
|
||||
if(item.getItem() instanceof ItemScripted) {
|
||||
return new ScriptCustomItem(item);
|
||||
|
||||
Reference in new issue
Block a user