mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 02:37:27 +00:00
Fixed empty tabs breaking all following tab scripts on scripted items.
This commit is contained in:
1 parent
c90a5d9713
commit
60ed5ab607
1 file changed
+1
-1
@@ -90,7 +90,7 @@ public class ScriptCustomItem extends ScriptItemStack implements IItemCustom, IS
|
||||
ScriptContainer script = this.scripts.get(i);
|
||||
if (!this.errored.contains(i)) {
|
||||
if(script == null || script.errored || !script.hasCode())
|
||||
return;
|
||||
continue;
|
||||
|
||||
script.run(type, event);
|
||||
|
||||
|
||||
Reference in new issue
Block a user