Reloading error
Whenever i try to reload the gun it do not reload but throw this error.
Example which always work on all previous versions
RattlingGunReload: Cooldown: 5 Skills:
- potion{type=SLOW;duration=50;level=5} @Self
- potion{type=SLOW_DIGGING;duration=50;level=5} @Self
- delay 50
- reloadammo{amount=1}
Error for not reloading
[18:21:53 INFO]: [MythicMobs] |----- Executing SkillMechanic with power 1 (line: reloadammo{amount=1}) [18:21:53 INFO]: [MythicMobs] |----- No ammo left [18:21:53 WARN]: java.lang.NullPointerException [18:21:53 WARN]: at io.lumine.mythiccrucible.skills.mechanics.AmmoLoadMechanic.cast(AmmoLoadMechanic.java:99) [18:21:53 WARN]: at io.lumine.xikage.mythicmobs.skills.SkillMechanic.executeNoTargetSkill(SkillMechanic.java:480) [18:21:53 WARN]: at io.lumine.xikage.mythicmobs.skills.SkillMechanic.lambda$executeSkills$4(SkillMechanic.java:426) [18:21:53 WARN]: at io.lumine.xikage.mythicmobs.skills.SkillMechanic.runMechanic(SkillMechanic.java:444) [18:21:53 WARN]: at io.lumine.xikage.mythicmobs.skills.SkillMechanic.executeSkills(SkillMechanic.java:426) [18:21:53 WARN]: at io.lumine.xikage.mythicmobs.skills.SkillMechanic.execute(SkillMechanic.java:324) [18:21:53 WARN]: at io.lumine.xikage.mythicmobs.skills.Skill.execute(Skill.java:270) [18:21:53 WARN]: at io.lumine.xikage.mythicmobs.skills.AbstractSkill$DelayedSkill.run(AbstractSkill.java:552) [18:21:53 WARN]: at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:100) [18:21:53 WARN]: at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468) [18:21:53 WARN]: at net.minecraft.server.v1_16_R3.MinecraftServer.b(MinecraftServer.java:1503) [18:21:53 WARN]: at net.minecraft.server.v1_16_R3.DedicatedServer.b(DedicatedServer.java:449) [18:21:53 WARN]: at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1416) [18:21:53 WARN]: at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1142) [18:21:53 WARN]: at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:293) [18:21:53 WARN]: at java.lang.Thread.run(Thread.java:745)
Also when i try to shoot without ammo it throws this error
[18:24:45 ERROR]: Could not pass event PlayerInteractEvent to MythicCrucible v1.0.2-SNAPSHOT java.util.NoSuchElementException: No value present at java.util.Optional.get(Optional.java:135) ~[?:1.8.0_74] at io.lumine.mythiccrucible.profiles.Profile.runSkills(Profile.java:198) ~[?:?] at io.lumine.mythiccrucible.profiles.Profile.runSkills(Profile.java:165) ~[?:?] at io.lumine.mythiccrucible.items.ItemManager.InteractEvent(ItemManager.java:397) ~[?:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor462.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.16.5.jar:git-Purpur-1170] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.16.5.jar:git-Purpur-1170] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.16.5.jar:git-Purpur-1170] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:624) ~[patched_1.16.5.jar:git-Purpur-1170] at org.bukkit.craftbukkit.v1_16_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:549) ~[patched_1.16.5.jar:git-Purpur-1170] at org.bukkit.craftbukkit.v1_16_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:512) ~[patched_1.16.5.jar:git-Purpur-1170] at org.bukkit.craftbukkit.v1_16_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:507) ~[patched_1.16.5.jar:git-Purpur-1170] at org.bukkit.craftbukkit.v1_16_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:503) ~[patched_1.16.5.jar:git-Purpur-1170] at net.minecraft.server.v1_16_R3.PlayerConnection.a(PlayerConnection.java:1895) ~[patched_1.16.5.jar:git-Purpur-1170] at net.minecraft.server.v1_16_R3.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:32) ~[patched_1.16.5.jar:git-Purpur-1170] at net.minecraft.server.v1_16_R3.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:9) ~[patched_1.16.5.jar:git-Purpur-1170] at net.minecraft.server.v1_16_R3.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:55) ~[patched_1.16.5.jar:git-Purpur-1170] at net.minecraft.server.v1_16_R3.TickTask.run(SourceFile:18) ~[patched_1.16.5.jar:git-Purpur-1170] at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.16.5.jar:git-Purpur-1170] at net.minecraft.server.v1_16_R3.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.16.5.jar:git-Purpur-1170] at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.16.5.jar:git-Purpur-1170] at net.minecraft.server.v1_16_R3.MinecraftServer.bb(MinecraftServer.java:1339) ~[patched_1.16.5.jar:git-Purpur-1170] at net.minecraft.server.v1_16_R3.MinecraftServer.executeNext(MinecraftServer.java:1332) ~[patched_1.16.5.jar:git-Purpur-1170] at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[patched_1.16.5.jar:git-Purpur-1170] at net.minecraft.server.v1_16_R3.MinecraftServer.sleepForTick(MinecraftServer.java:1308) ~[patched_1.16.5.jar:git-Purpur-1170] at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1152) ~[patched_1.16.5.jar:git-Purpur-1170] at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:293) ~[patched_1.16.5.jar:git-Purpur-1170] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_74]