Skip to content

Commit

Permalink
Añadir Code
Browse files Browse the repository at this point in the history
  • Loading branch information
Trollhunters501PC authored Nov 28, 2024
1 parent 80503ab commit 98d55e7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/org/CreadoresProgram/JSENK2/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,9 @@
console.error("Plugin "+depend.replace("pluginNukkit/", "")+" Not found!");
continue;
}
if(contexto2eng.require(depend) == null){
contexto2eng.require.register(depend, function(module){
module.exports = manager.getPlugin(depend.replace("pluginNukkit/", ""));
});
}
contexto2eng.require.register(depend, function(module){
module.exports = manager.getPlugin(depend.replace("pluginNukkit/", ""));
});
}
if(depend.startsWith("scriptJSENK/")){
if(script.getScriptByName(depend.replace("scriptJSENK/", "")) == null){
Expand Down Expand Up @@ -154,4 +152,4 @@
script.addEventListener("Disable", mainSc.onDisable);
}
}
})();
})();

0 comments on commit 98d55e7

Please sign in to comment.