• Hello Guest! Did you know that ProjectKorra has an official Discord server? A lot of discussion about the official server, development process, and community discussion happens over there. Feel free to join now by clicking the link below.

    Join the Discord Server

Bug Report Cannot measure distance between BendingArena and world

HeyAwesomePeople

Verified Member
Hello. I am using 1.6.0 BETA12(Core), running Spigot 1.8R0.1.

The bug seems to happen when a player Shifts
Code:
[20:33:29 ERROR]: Could not pass event PlayerToggleSneakEvent to ProjectKorra v1.6.0 BETA 12
org.bukkit.event.EventException
	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) ~[custom.jar:git-Spigot-2130aaa-c8f1723]
	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[custom.jar:git-Spigot-2130aaa-c8f1723]
	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [custom.jar:git-Spigot-2130aaa-c8f1723]
	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [custom.jar:git-Spigot-2130aaa-c8f1723]
	at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:1173) [custom.jar:git-Spigot-2130aaa-c8f1723]
	at net.minecraft.server.v1_8_R1.PacketPlayInEntityAction.a(SourceFile:43) [custom.jar:git-Spigot-2130aaa-c8f1723]
	at net.minecraft.server.v1_8_R1.PacketPlayInEntityAction.a(SourceFile:9) [custom.jar:git-Spigot-2130aaa-c8f1723]
	at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [custom.jar:git-Spigot-2130aaa-c8f1723]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_71]
	at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_71]
	at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:683) [custom.jar:git-Spigot-2130aaa-c8f1723]
	at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [custom.jar:git-Spigot-2130aaa-c8f1723]
	at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:623) [custom.jar:git-Spigot-2130aaa-c8f1723]
	at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:526) [custom.jar:git-Spigot-2130aaa-c8f1723]
	at java.lang.Thread.run(Thread.java:745) [?:1.7.0_71]
Caused by: java.lang.IllegalArgumentException: Cannot measure distance between BendingArena and world
	at org.bukkit.Location.distanceSquared(Location.java:455) ~[custom.jar:git-Spigot-2130aaa-c8f1723]
	at com.projectkorra.ProjectKorra.earthbending.EarthSmash.flyingInSmashCheck(EarthSmash.java:549) ~[?:?]
	at com.projectkorra.ProjectKorra.earthbending.EarthSmash.<init>(EarthSmash.java:97) ~[?:?]
	at com.projectkorra.ProjectKorra.PKListener.onPlayerSneak(PKListener.java:525) ~[?:?]
	at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_71]
	at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_71]
	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ~[custom.jar:git-Spigot-2130aaa-c8f1723]
	... 14 more

This seems to happen with other bending types as well(same error). Please take a look at this. Thanks
 

jacklin213

Staff member
Plugin Developer
Verified Member
Hello. I am using 1.6.0 BETA12(Core), running Spigot 1.8R0.1.

The bug seems to happen when a player Shifts
Code:
[20:33:29 ERROR]: Could not pass event PlayerToggleSneakEvent to ProjectKorra v1.6.0 BETA 12
org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) ~[custom.jar:git-Spigot-2130aaa-c8f1723]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[custom.jar:git-Spigot-2130aaa-c8f1723]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [custom.jar:git-Spigot-2130aaa-c8f1723]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [custom.jar:git-Spigot-2130aaa-c8f1723]
    at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:1173) [custom.jar:git-Spigot-2130aaa-c8f1723]
    at net.minecraft.server.v1_8_R1.PacketPlayInEntityAction.a(SourceFile:43) [custom.jar:git-Spigot-2130aaa-c8f1723]
    at net.minecraft.server.v1_8_R1.PacketPlayInEntityAction.a(SourceFile:9) [custom.jar:git-Spigot-2130aaa-c8f1723]
    at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [custom.jar:git-Spigot-2130aaa-c8f1723]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_71]
    at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_71]
    at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:683) [custom.jar:git-Spigot-2130aaa-c8f1723]
    at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [custom.jar:git-Spigot-2130aaa-c8f1723]
    at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:623) [custom.jar:git-Spigot-2130aaa-c8f1723]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:526) [custom.jar:git-Spigot-2130aaa-c8f1723]
    at java.lang.Thread.run(Thread.java:745) [?:1.7.0_71]
Caused by: java.lang.IllegalArgumentException: Cannot measure distance between BendingArena and world
    at org.bukkit.Location.distanceSquared(Location.java:455) ~[custom.jar:git-Spigot-2130aaa-c8f1723]
    at com.projectkorra.ProjectKorra.earthbending.EarthSmash.flyingInSmashCheck(EarthSmash.java:549) ~[?:?]
    at com.projectkorra.ProjectKorra.earthbending.EarthSmash.<init>(EarthSmash.java:97) ~[?:?]
    at com.projectkorra.ProjectKorra.PKListener.onPlayerSneak(PKListener.java:525) ~[?:?]
    at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source) ~[?:?]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_71]
    at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_71]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ~[custom.jar:git-Spigot-2130aaa-c8f1723]
    ... 14 more

This seems to happen with other bending types as well(same error). Please take a look at this. Thanks
Actually thanks for reporting it. I'll put a fix through
 

HeyAwesomePeople

Verified Member
Actually thanks for reporting it. I'll put a fix through
Not fixed. Using latest version(Beta14), this error:
Code:
[20:22:54 WARN]: [ProjectKorra] Task #76 for ProjectKorra v1.6.0 BETA 14 generated an exception
java.lang.IllegalArgumentException: Cannot measure distance between world and BendingArena
    at org.bukkit.Location.distanceSquared(Location.java:455) ~[custom.jar:git-Spigot-2130aaa-c8f1723]
    at org.bukkit.Location.distance(Location.java:438) ~[custom.jar:git-Spigot-2130aaa-c8f1723]
    at com.projectkorra.ProjectKorra.airbending.AirShield.isWithinShield(AirShield.java:196) ~[?:?]
    at com.projectkorra.ProjectKorra.Methods.blockAbilities(Methods.java:2418) ~[?:?]
    at com.projectkorra.ProjectKorra.firebending.FireCombo.progress(FireCombo.java:203) ~[?:?]
    at com.projectkorra.ProjectKorra.firebending.FireCombo.progressAll(FireCombo.java:434) ~[?:?]
    at com.projectkorra.ProjectKorra.firebending.FirebendingManager.run(FirebendingManager.java:36) ~[?:?]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:71) ~[custom.jar:git-Spigot-2130aaa-c8f1723]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [custom.jar:git-Spigot-2130aaa-c8f1723]
    at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:694) [custom.jar:git-Spigot-2130aaa-c8f1723]
    at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [custom.jar:git-Spigot-2130aaa-c8f1723]
    at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:623) [custom.jar:git-Spigot-2130aaa-c8f1723]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:526) [custom.jar:git-Spigot-2130aaa-c8f1723]
    at java.lang.Thread.run(Thread.java:745) [?:1.7.0_75]
Different task, same main error, IllegalArgumentException.
 
Top