mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 06:07:27 +00:00
Fix Cached Item and Scripted Item Errors
This commit is contained in:
1 parent
79f2b9b52c
commit
f5ee7451f5
2 files changed
+2
-8
No files matched your search
@@ -493,15 +493,8 @@ public class NpcAPI extends AbstractNpcAPI {
|
||||
} else {
|
||||
scriptStack = new ScriptItemStack(itemstack);
|
||||
}
|
||||
scriptItemCache.put(itemstack, new CacheHashMap.CachedObject<>(scriptStack));
|
||||
}
|
||||
|
||||
// Version Check Linked Item
|
||||
// if(scriptStack instanceof ScriptLinkedItem && CustomNpcs.side() == Side.SERVER){
|
||||
// ScriptLinkedItem scriptLinkedItem = (ScriptLinkedItem) scriptStack;
|
||||
// LinkedItem linkedItem = LinkedItemController.getInstance().get(scriptLinkedItem.linkedItem.getId());
|
||||
//
|
||||
//
|
||||
// }
|
||||
return scriptStack;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user