mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 00:17:27 +00:00
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:
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);
|
||||
}
|
||||
});
|
||||
//});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user