mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 22:15:06 +00:00
Moved all INpcScriptHandler implementations to IScriptHandler as its redundant
This commit is contained in:
1 parent
10b6ccf427
commit
cd60a03544
14 files changed
+37
-36
No files matched your search
@@ -4,7 +4,7 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import noppes.npcs.api.item.IItemLinked;
|
||||
import noppes.npcs.controllers.LinkedItemController;
|
||||
import noppes.npcs.controllers.data.INpcScriptHandler;
|
||||
import noppes.npcs.controllers.data.IScriptHandler;
|
||||
import noppes.npcs.controllers.data.LinkedItem;
|
||||
|
||||
public class ScriptLinkedItem extends ScriptCustomizableItem implements IItemLinked {
|
||||
@@ -51,7 +51,7 @@ public class ScriptLinkedItem extends ScriptCustomizableItem implements IItemLin
|
||||
}
|
||||
|
||||
@Override
|
||||
public INpcScriptHandler getScriptHandler() {
|
||||
public IScriptHandler getScriptHandler() {
|
||||
if (this.getLinkedItem() == null)
|
||||
return null;
|
||||
return this.getLinkedItem().getScriptHandler();
|
||||
|
||||
Reference in new issue
Block a user