diff --git a/examplemods/grapplehook.js b/examplemods/grapplehook.js index d3aa9ee..e3ec430 100644 --- a/examplemods/grapplehook.js +++ b/examplemods/grapplehook.js @@ -9,7 +9,7 @@ var GrappleHookPlugin = { }; PluginAPI.addEventListener("update", () => { //Every client tick if (!PluginAPI.player.fishEntity) { //If the fish hook does not exist. - if (GrappleHookPlugin.prev === "GROUND" && (!GrappleHookPlugin.crouchToCancel || !PluginAPI.player.isSneaking.apply(PluginAPI.javaClient.$thePlayer, []))) { //If the old state was ground + if (GrappleHookPlugin.prev === "GROUND" && (!GrappleHookPlugin.crouchToCancel || !PluginAPI.player.isSneaking())) { //If the old state was ground GrappleHookPlugin.prev = "NONE"; //Update the state var mx = GrappleHookPlugin.oldXYZ[0] - PluginAPI.player.posX; //Get delta X var my = GrappleHookPlugin.oldXYZ[1] - PluginAPI.player.posY; //Get delta Y diff --git a/injector.html b/injector.html index 9c28783..e4a2c8d 100644 --- a/injector.html +++ b/injector.html @@ -6,7 +6,7 @@ EaglerForge Injector