Fixed forge scripts on the server side. getIEntity() now correctly returns an IPlayer when given a player as a parameter.

This commit is contained in:
luisc committed 2021-10-20 20:27:42 -05:00
1 parent 5515f5ef83
commit a993c8feff
2 files changed
+3 -4

No files matched your search

@@ -58,8 +58,7 @@ public class ForgeDataScript implements IScriptHandler {
public void callScript(String type, Event event) {
if(this.isEnabled()) {
//CustomNpcs.getServer().func_152344_a(() -> {
Minecraft.getMinecraft().func_152344_a(() -> {
//Minecraft.getMinecraft().func_152344_a(() -> {
if (ScriptController.Instance.lastLoaded > this.lastInited) {
this.lastInited = ScriptController.Instance.lastLoaded;
if (!type.equals("init")) {
@@ -85,7 +84,7 @@ public class ForgeDataScript implements IScriptHandler {
script.run(type, event);
}
});
//});
}
}