mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-14 04:59:57 +00:00
Small Linked Item Building Fix
This commit is contained in:
1 parent
c492e16cc8
commit
d36ec5c259
3 files changed
+3
-3
No files matched your search
@@ -84,7 +84,7 @@ public class LinkedItemController implements ILinkedItemHandler {
|
||||
}
|
||||
|
||||
@Override
|
||||
public ILinkedItem get(int id) {
|
||||
public LinkedItem get(int id) {
|
||||
return (LinkedItem) this.linkedItems.get(id);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ public class ItemLinked extends ItemCustomizable {
|
||||
IItemStack itemStack = NpcAPI.Instance().getIItemStack(stack);
|
||||
if (itemStack instanceof ScriptLinkedItem) {
|
||||
ScriptLinkedItem scriptLinkedItem = (ScriptLinkedItem) itemStack;
|
||||
LinkedItem linkedItem = LinkedItemController.getInstance().get(scriptLinkedItem.linkedItem.getId());
|
||||
LinkedItem linkedItem = (LinkedItem) LinkedItemController.getInstance().get(scriptLinkedItem.linkedItem.getId());
|
||||
int prevVersion = scriptLinkedItem.linkedVersion;
|
||||
if (linkedItem != null && scriptLinkedItem.linkedVersion != linkedItem.version) {
|
||||
scriptLinkedItem.linkedItem = linkedItem.clone();
|
||||
|
||||
Reference in new issue
Block a user