Exception in 'on damage of boat'
kiip1 opened this issue ยท 0 comments
Skript/Server Version
Server Version: 1.21.3-2358-16ce24a (MC: 1.21.3)
Skript Version: 2.9.5-mlum (selfbuilt-unknown)
Installed Skript Addons:
- Skript-AnvilGUI v1.9
- skript-gui v1.3 (https://github.com/APickledWalrus/skript-gui)
- DiSky v4.20.2
- skript-particle v1.3.1 (https://github.com/sovdeeth/skript-particle)
- mlum v1.0.0-1.21
- MorkazSk v1.4
- skript-reflect v2.5.1 (https://github.com/SkriptLang/skript-reflect)
- SkBee v3.6.5 (https://github.com/SkriptHub/SkBee)
Installed dependencies:
- WorldGuard v7.0.13-beta-1+2f13ae0
Bug Description
Does - 2 without checking whether the pattern is "boat" (0) or "any boat" (1), causing an exception.
Expected Behavior
Should handle the damaging of any boat type correctly.
Steps to Reproduce
on damage of boat:
victim is oak boat
attacker's gamemode is adventure
{-cinematicViewer::%uuid of attacker%} is not set
kill victim
Errors or Screenshots
[12:33:26] [Server thread/ERROR]: #!#!
[12:33:26] [Server thread/ERROR]: #!#! [Skript] Severe Error:
[12:33:26] [Server thread/ERROR]: #!#!
[12:33:26] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
[12:33:26] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[12:33:26] [Server thread/ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[12:33:26] [Server thread/ERROR]: #!#! Here is full list of them:
[12:33:26] [Server thread/ERROR]: #!#! skript-reflect v2.5.1 (https://github.com/SkriptLang/skript-reflect) Skript-AnvilGUI v1.9 skript-particle v1.3.1 (https://github.com/sovdeeth/skript-particle) MorkazSk v1.4 skript-gui v1.3 (https://github.com/APickledWalrus/skript-gui) DiSky v4.20.2 SkBee v3.6.5 (https://github.com/SkriptHub/SkBee) mlum v1.0.0-1.21
[12:33:26] [Server thread/ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[12:33:26] [Server thread/ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[12:33:26] [Server thread/ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[12:33:26] [Server thread/ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[12:33:26] [Server thread/ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[12:33:26] [Server thread/ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
[12:33:26] [Server thread/ERROR]: #!#!
[12:33:26] [Server thread/ERROR]: #!#! Stack trace:
[12:33:26] [Server thread/ERROR]: #!#! java.lang.ArrayIndexOutOfBoundsException: Index -2 out of bounds for length 6
[12:33:26] [Server thread/ERROR]: #!#! at Skript-2.9.5.jar//ch.njol.skript.entity.BoatData.getType(BoatData.java:100)
[12:33:26] [Server thread/ERROR]: #!#! at Skript-2.9.5.jar//ch.njol.skript.entity.EntityData.isInstance(EntityData.java:657)
[12:33:26] [Server thread/ERROR]: #!#! at Skript-2.9.5.jar//ch.njol.skript.events.EvtDamage.checkDamaged(EvtDamage.java:90)
[12:33:26] [Server thread/ERROR]: #!#! at Skript-2.9.5.jar//ch.njol.skript.events.EvtDamage.check(EvtDamage.java:69)
[12:33:26] [Server thread/ERROR]: #!#! at Skript-2.9.5.jar//ch.njol.skript.SkriptEventHandler.lambda$execute$3(SkriptEventHandler.java:193)
[12:33:26] [Server thread/ERROR]: #!#! at Skript-2.9.5.jar//ch.njol.skript.util.Task.callSync(Task.java:164)
[12:33:26] [Server thread/ERROR]: #!#! at Skript-2.9.5.jar//ch.njol.skript.util.Task.callSync(Task.java:148)
[12:33:26] [Server thread/ERROR]: #!#! at Skript-2.9.5.jar//ch.njol.skript.SkriptEventHandler.execute(SkriptEventHandler.java:192)
[12:33:26] [Server thread/ERROR]: #!#! at Skript-2.9.5.jar//ch.njol.skript.SkriptEventHandler.check(SkriptEventHandler.java:138)
[12:33:26] [Server thread/ERROR]: #!#! at Skript-2.9.5.jar//ch.njol.skript.SkriptEventHandler$PriorityListener.lambda$new$0(SkriptEventHandler.java:64)
[12:33:26] [Server thread/ERROR]: #!#! at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80)
[12:33:26] [Server thread/ERROR]: #!#! at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[12:33:26] [Server thread/ERROR]: #!#! at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54)
[12:33:26] [Server thread/ERROR]: #!#! at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131)
[12:33:26] [Server thread/ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:630)
[12:33:26] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.event.CraftEventFactory.callEvent(CraftEventFactory.java:276)
[12:33:26] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:1217)
[12:33:26] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:1212)
[12:33:26] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:1138)
[12:33:26] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.event.CraftEventFactory.callNonLivingEntityDamageEvent(CraftEventFactory.java:1280)
[12:33:26] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.event.CraftEventFactory.handleNonLivingEntityDamageEvent(CraftEventFactory.java:1284)
[12:33:26] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.event.CraftEventFactory.handleNonLivingEntityDamageEvent(CraftEventFactory.java:1270)
[12:33:26] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.event.CraftEventFactory.handleNonLivingEntityDamageEvent(CraftEventFactory.java:1266)
[12:33:26] [Server thread/ERROR]: #!#! at net.minecraft.world.entity.decoration.ArmorStand.hurtServer(ArmorStand.java:499)
[12:33:26] [Server thread/ERROR]: #!#! at net.minecraft.world.entity.Entity.hurt(Entity.java:2379)
[12:33:26] [Server thread/ERROR]: #!#! at net.minecraft.world.entity.LivingEntity.onBelowWorld(LivingEntity.java:2820)
[12:33:26] [Server thread/ERROR]: #!#! at net.minecraft.world.entity.Entity.checkBelowWorld(Entity.java:1004)
[12:33:26] [Server thread/ERROR]: #!#! at net.minecraft.world.entity.Entity.baseTick(Entity.java:976)
[12:33:26] [Server thread/ERROR]: #!#! at net.minecraft.world.entity.LivingEntity.baseTick(LivingEntity.java:459)
[12:33:26] [Server thread/ERROR]: #!#! at net.minecraft.world.entity.Entity.tick(Entity.java:905)
[12:33:26] [Server thread/ERROR]: #!#! at net.minecraft.world.entity.LivingEntity.tick(LivingEntity.java:3360)
[12:33:26] [Server thread/ERROR]: #!#! at net.minecraft.world.entity.decoration.ArmorStand.tick(ArmorStand.java:705)
[12:33:26] [Server thread/ERROR]: #!#! at net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:1387)
[12:33:26] [Server thread/ERROR]: #!#! at net.minecraft.server.level.ServerLevel.lambda$tick$4(ServerLevel.java:836)
[12:33:26] [Server thread/ERROR]: #!#! at net.minecraft.world.level.entity.EntityTickList.forEach(EntityTickList.java:39)
[12:33:26] [Server thread/ERROR]: #!#! at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:815)
[12:33:26] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1923)
[12:33:26] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1711)
[12:33:26] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1370)
[12:33:26] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:344)
[12:33:26] [Server thread/ERROR]: #!#! at java.base/java.lang.Thread.run(Thread.java:1583)
[12:33:26] [Server thread/ERROR]: #!#!
[12:33:26] [Server thread/ERROR]: #!#! Version Information:
[12:33:26] [Server thread/ERROR]: #!#! Skript: 2.9.5
[12:33:26] [Server thread/ERROR]: #!#! Flavor: skriptlang-github
[12:33:26] [Server thread/ERROR]: #!#! Date: 19:09:25.858356200
[12:33:26] [Server thread/ERROR]: #!#! Bukkit: 1.21.3-R0.1-SNAPSHOT
[12:33:26] [Server thread/ERROR]: #!#! Minecraft: 1.21.3
[12:33:26] [Server thread/ERROR]: #!#! Java: 21.0.3 (OpenJDK 64-Bit Server VM 21.0.3+9-LTS)
[12:33:26] [Server thread/ERROR]: #!#! OS: Linux amd64 6.8.0-48-generic
[12:33:26] [Server thread/ERROR]: #!#!
[12:33:26] [Server thread/ERROR]: #!#! Server platform: Paper
[12:33:26] [Server thread/ERROR]: #!#!
[12:33:26] [Server thread/ERROR]: #!#! Current node: null
[12:33:26] [Server thread/ERROR]: #!#! Current item: null
[12:33:26] [Server thread/ERROR]: #!#!
[12:33:26] [Server thread/ERROR]: #!#! Thread: Server thread
[12:33:26] [Server thread/ERROR]: #!#!
[12:33:26] [Server thread/ERROR]: #!#! Language: english
[12:33:26] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
[12:33:26] [Server thread/ERROR]: #!#!
[12:33:26] [Server thread/ERROR]: #!#! End of Error.
[12:33:26] [Server thread/ERROR]: #!#!
- Server crash since future doesn't get resolved
Other
https://github.com/mlummh/mlum-skript doesn't change anything related to damage events, entity data or similar.
Agreement
- I have read the guidelines above and affirm I am following them with this report.