Closed riddle closed 9 years ago
Another
16:06:26 [ERROR] Could not pass event EntityPortalEvent to Mantle v1.2.0
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) ~[spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at net.minecraft.server.v1_8_R1.Entity.c(Entity.java:1913) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at net.minecraft.server.v1_8_R1.Entity.K(Entity.java:278) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at net.minecraft.server.v1_8_R1.Entity.s_(Entity.java:245) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at net.minecraft.server.v1_8_R1.EntityProjectile.s_(EntityProjectile.java:84) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at net.minecraft.server.v1_8_R1.World.entityJoinedWorld(World.java:1603) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at net.minecraft.server.v1_8_R1.World.g(World.java:1578) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at net.minecraft.server.v1_8_R1.World.tickEntities(World.java:1421) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at net.minecraft.server.v1_8_R1.WorldServer.tickEntities(WorldServer.java:576) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:772) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:634) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:537) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_25]
Caused by: java.lang.NullPointerException
at us.corenetwork.mantle.portals.PortalUtil.getFarthestPortalBlock(PortalUtil.java:464) ~[?:?]
at us.corenetwork.mantle.portals.PortalInfo.getPortalInfo(PortalInfo.java:29) ~[?:?]
at us.corenetwork.mantle.portals.PortalUtil.prepareDestinationBlock(PortalUtil.java:46) ~[?:?]
at us.corenetwork.mantle.portals.PortalUtil.processTeleport(PortalUtil.java:26) ~[?:?]
at us.corenetwork.mantle.portals.PortalsListener.onEntityPortal(PortalsListener.java:380) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_25]
at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_25]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ~[spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
... 16 more
I think I'll add some kind of null check there and be done with it. Nothing really bad happens coz of null being there, apparently (or we would hear about it).
On the other hand - Looking at the logs, I'm 99% certain it is caused by restarting - an entity is in a portal, and some shit gets noted down when enitty enters a portal, and is not persistent.
Saw this in console as well. Moving here from Trello.