Spawn NaN of an entity data throws an error
ShaneBeee opened this issue ยท 0 comments
Skript/Server Version
[19:23:30 INFO]: [Skript] Server Version: 1.21-37-dd49fba (MC: 1.21)
[19:23:30 INFO]: [Skript] Skript Version: 2.8.7-nightly-132cbf1 (skriptlang-nightly)
[19:23:30 INFO]: [Skript] Installed Skript Addons:
[19:23:30 INFO]: [Skript] - skNoise v1.0.1
[19:23:30 INFO]: [Skript] - skript-reflect v2.4 (https://github.com/SkriptLang/skript-reflect)
[19:23:30 INFO]: [Skript] - SkBee v3.5.5 (https://github.com/ShaneBeee/SkBee)
[19:23:30 INFO]: [Skript] - SkBriggy v1.3.2
[19:23:30 INFO]: [Skript] Installed dependencies:
[19:23:30 INFO]: [Skript] - Vault v1.7.3-b131
Bug Description
When spawning an entity using a non-set var, it errors
Expected Behavior
No error
Steps to Reproduce
command /test:
trigger:
spawn {_i} of sheep above target block
Errors or Screenshots
[19:24:04 ERROR]: #!#!
[19:24:04 ERROR]: #!#! [Skript] Severe Error:
[19:24:04 ERROR]: #!#!
[19:24:04 ERROR]: #!#! You're running a (buggy) nightly version of Skript.
[19:24:04 ERROR]: #!#! If this is not a test server, switch to a more stable release NOW!
[19:24:04 ERROR]: #!#! Your players are unlikely to appreciate crashes and/or data loss due to Skript bugs.
[19:24:04 ERROR]: #!#!
[19:24:04 ERROR]: #!#! Just testing things? Good. Please report this bug, so that we can fix it before a stable release.
[19:24:04 ERROR]: #!#! Issue tracker: https://github.com/SkriptLang/Skript/issues
[19:24:04 ERROR]: #!#!
[19:24:04 ERROR]: #!#! Stack trace:
[19:24:04 ERROR]: #!#! java.lang.ClassCastException: class [Ljava.lang.Object; cannot be cast to class [Lch.njol.skript.entity.EntityType; ([Ljava.lang.Object; is in module java.base of loader 'bootstrap'; [Lch.njol.skript.entity.EntityType; is in unnamed module of loader 'Skript-nightly.jar' @21f29b66)
[19:24:04 ERROR]: #!#! at Skript-nightly.jar//ch.njol.skript.sections.EffSecSpawn.walk(EffSecSpawn.java:164)
[19:24:04 ERROR]: #!#! at Skript-nightly.jar//ch.njol.skript.lang.EffectSectionEffect.walk(EffectSectionEffect.java:47)
[19:24:04 ERROR]: #!#! at Skript-nightly.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:88)
[19:24:04 ERROR]: #!#! at Skript-nightly.jar//ch.njol.skript.lang.Trigger.execute(Trigger.java:52)
[19:24:04 ERROR]: #!#! at Skript-nightly.jar//ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:316)
[19:24:04 ERROR]: #!#! at Skript-nightly.jar//ch.njol.skript.command.ScriptCommand.lambda$execute$0(ScriptCommand.java:275)
[19:24:04 ERROR]: #!#! at Skript-nightly.jar//ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:286)
[19:24:04 ERROR]: #!#! at Skript-nightly.jar//ch.njol.skript.command.ScriptCommand.onCommand(ScriptCommand.java:221)
[19:24:04 ERROR]: #!#! at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
[19:24:04 ERROR]: #!#! at io.papermc.paper.command.brigadier.bukkit.BukkitCommandNode$BukkitBrigCommand.run(BukkitCommandNode.java:91)
[19:24:04 ERROR]: #!#! at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73)
[19:24:04 ERROR]: #!#! at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:31)
[19:24:04 ERROR]: #!#! at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:19)
[19:24:04 ERROR]: #!#! at net.minecraft.commands.execution.UnboundEntryAction.lambda$bind$0(UnboundEntryAction.java:8)
[19:24:04 ERROR]: #!#! at net.minecraft.commands.execution.CommandQueueEntry.execute(CommandQueueEntry.java:5)
[19:24:04 ERROR]: #!#! at net.minecraft.commands.execution.ExecutionContext.runCommandQueue(ExecutionContext.java:103)
[19:24:04 ERROR]: #!#! at net.minecraft.commands.Commands.executeCommandInContext(Commands.java:446)
[19:24:04 ERROR]: #!#! at net.minecraft.commands.Commands.performCommand(Commands.java:353)
[19:24:04 ERROR]: #!#! at net.minecraft.commands.Commands.performCommand(Commands.java:340)
[19:24:04 ERROR]: #!#! at net.minecraft.commands.Commands.performCommand(Commands.java:335)
[19:24:04 ERROR]: #!#! at net.minecraft.server.network.ServerGamePacketListenerImpl.performUnsignedChatCommand(ServerGamePacketListenerImpl.java:2147)
[19:24:04 ERROR]: #!#! at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$11(ServerGamePacketListenerImpl.java:2121)
[19:24:04 ERROR]: #!#! at net.minecraft.server.TickTask.run(TickTask.java:18)
[19:24:04 ERROR]: #!#! at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:151)
[19:24:04 ERROR]: #!#! at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24)
[19:24:04 ERROR]: #!#! at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1478)
[19:24:04 ERROR]: #!#! at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:201)
[19:24:04 ERROR]: #!#! at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:125)
[19:24:04 ERROR]: #!#! at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1456)
[19:24:04 ERROR]: #!#! at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1449)
[19:24:04 ERROR]: #!#! at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:135)
[19:24:04 ERROR]: #!#! at net.minecraft.server.MinecraftServer.managedBlock(MinecraftServer.java:1408)
[19:24:04 ERROR]: #!#! at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1415)
[19:24:04 ERROR]: #!#! at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1260)
[19:24:04 ERROR]: #!#! at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:329)
[19:24:04 ERROR]: #!#! at java.base/java.lang.Thread.run(Thread.java:1583)
[19:24:04 ERROR]: #!#!
[19:24:04 ERROR]: #!#! Version Information:
[19:24:04 ERROR]: #!#! Skript: 2.8.7-nightly-132cbf1
[19:24:04 ERROR]: #!#! Flavor: skriptlang-nightly
[19:24:04 ERROR]: #!#! Date: 05:11:58.094386293
[19:24:04 ERROR]: #!#! Bukkit: 1.21-R0.1-SNAPSHOT
[19:24:04 ERROR]: #!#! Minecraft: 1.21
[19:24:04 ERROR]: #!#! Java: 21.0.3 (OpenJDK 64-Bit Server VM 21.0.3+9-LTS)
[19:24:04 ERROR]: #!#! OS: Mac OS X aarch64 14.5
[19:24:04 ERROR]: #!#!
[19:24:04 ERROR]: #!#! Server platform: Paper
[19:24:04 ERROR]: #!#!
[19:24:04 ERROR]: #!#! Current node: null
[19:24:04 ERROR]: #!#! Current item: spawn {_i} (as java.lang.Number) of [[entitytype:sheep]] above (the targeted block of event-player >> ch.njol.skript.classes.data.DefaultConverters$$Lambda/0x00000008010fd9f0@688ef0dc: ConverterInfo{from=interface org.bukkit.block.Block,to=class org.bukkit.Location,converter=ch.njol.skript.classes.data.DefaultConverters$$Lambda/0x00000008010fd9f0@688ef0dc,flags=4})
[19:24:04 ERROR]: #!#!
[19:24:04 ERROR]: #!#! Thread: Server thread
[19:24:04 ERROR]: #!#!
[19:24:04 ERROR]: #!#! Language: english
[19:24:04 ERROR]: #!#! Link parse mode: DISABLED
[19:24:04 ERROR]: #!#!
[19:24:04 ERROR]: #!#! End of Error.
[19:24:04 ERROR]: #!#!
Other
No response
Agreement
- I have read the guidelines above and affirm I am following them with this report.