Skript

Skript

743k Downloads

createExplosion with no world in location throws exception

TheLimeGlass opened this issue ยท 0 comments

commented

Skript/Server Version

2.8.3
Spigot Paper 1.20.1

Bug Description

[14:41:47] [Server thread/ERROR]: #!#! Stack trace:
[14:41:47] [Server thread/ERROR]: #!#! java.lang.NullPointerException: Cannot invoke "org.bukkit.World.createExplosion(org.bukkit.Location, float, boolean)" because the return value of "org.bukkit.Location.getWorld()" is null
[14:41:47] [Server thread/ERROR]: #!#!     at Skript.jar//ch.njol.skript.effects.EffExplosion.execute(EffExplosion.java:85)
[14:41:47] [Server thread/ERROR]: #!#!     at Skript.jar//ch.njol.skript.lang.Effect.run(Effect.java:49)
[14:41:47] [Server thread/ERROR]: #!#!     at Skript.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
[14:41:47] [Server thread/ERROR]: #!#!     at Skript.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:88)
[14:41:47] [Server thread/ERROR]: #!#!     at Skript.jar//ch.njol.skript.effects.Delay.lambda$walk$0(Delay.java:107)
[14:41:47] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101)
[14:41:47] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:480)
[14:41:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1479)
[14:41:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:446)
[14:41:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1393)
[14:41:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1170)
[14:41:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317)
[14:41:47] [Server thread/ERROR]: #!#!     at java.base/java.lang.Thread.run(Thread.java:833)
[14:41:47] [Server thread/ERROR]: #!#! 
[14:41:47] [Server thread/ERROR]: #!#! Version Information:
[14:41:47] [Server thread/ERROR]: #!#!   Skript: (custom version)
[14:41:47] [Server thread/ERROR]: #!#!     Flavor: selfbuilt-unknown
[14:41:47] [Server thread/ERROR]: #!#!     Date: unknown
[14:41:47] [Server thread/ERROR]: #!#!   Bukkit: 1.20.1-R0.1-SNAPSHOT
[14:41:47] [Server thread/ERROR]: #!#!   Minecraft: 1.20.1
[14:41:47] [Server thread/ERROR]: #!#!   Java: 17.0.8.1 (OpenJDK 64-Bit Server VM 17.0.8.1+8-LTS)
[14:41:47] [Server thread/ERROR]: #!#!   OS: Linux amd64 5.10.0-24-amd64
[14:41:47] [Server thread/ERROR]: #!#! 
[14:41:47] [Server thread/ERROR]: #!#! Server platform: Paper
[14:41:47] [Server thread/ERROR]: #!#! 
[14:41:47] [Server thread/ERROR]: #!#! Current node: null
[14:41:47] [Server thread/ERROR]: #!#! Current item: create explosion effect {_vector} (as ch.njol.skript.util.Direction) {5::dam} offset by vector(0, 20, 0)
[14:41:47] [Server thread/ERROR]: #!#! Current trigger: function breakDam (simple event) (5/5.sk, line 21)

Expected Behavior

To not throw an exception

Steps to Reproduce

Run the EffExplosion effect with a location that has no world.