Skript 1.21 console error
ChicknTurtle opened this issue ยท 0 comments
Skript/Server Version
[14:40:36 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[14:40:36 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[14:40:36 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[14:40:36 INFO]: [Skript] Server Version: 1.21-38-1f5db50 (MC: 1.21)
[14:40:36 INFO]: [Skript] Skript Version: 2.8.7-nightly-b9b1ceb (skriptlang-nightly)
[14:40:36 INFO]: [Skript] Installed Skript Addons:
[14:40:36 INFO]: [Skript] - DiSky v4.17.2
[14:40:36 INFO]: [Skript] - skript-reflect v2.4 (https://github.com/SkriptLang/skript-reflect)
[14:40:36 INFO]: [Skript] - SkBee v3.5.5 (https://github.com/ShaneBeee/SkBee)
[14:40:36 INFO]: [Skript] Installed dependencies: None
Bug Description
When running remove 1 of player's tool from player's tool
while holding nothing (air) it throws an error in console about ItemMeta
Expected Behavior
Should do nothing instead of giving error
Steps to Reproduce
run the effect command
!remove 1 of player's tool from player's tool
Errors or Screenshots
14:37:59 ERROR: #!#! [Skript] Severe Error:
14:37:59 ERROR: #!#!
14:37:59 ERROR: #!#! You're running a (buggy) nightly version of Skript.
14:37:59 ERROR: #!#! If this is not a test server, switch to a more stable release NOW!
14:37:59 ERROR: #!#! Your players are unlikely to appreciate crashes and/or data loss due to Skript bugs.
14:37:59 ERROR: #!#!
14:37:59 ERROR: #!#! Just testing things? Good. Please report this bug, so that we can fix it before a stable release.
14:37:59 ERROR: #!#! Issue tracker: https://github.com/SkriptLang/Skript/issues
14:37:59 ERROR: #!#!
14:37:59 ERROR: #!#! Stack trace:
14:37:59 ERROR: #!#! java.lang.NullPointerException: Cannot invoke "org.bukkit.inventory.meta.ItemMeta.equals(Object)" because the return value of "org.bukkit.inventory.ItemStack.getItemMeta()" is null
14:37:59 ERROR: #!#! at Skript-nightly.jar//ch.njol.skript.bukkitutil.ItemUtils.itemStacksEqual(ItemUtils.java:154)
14:37:59 ERROR: #!#! at Skript-nightly.jar//ch.njol.skript.classes.data.SkriptClasses$10.change(SkriptClasses.java:487)
14:37:59 ERROR: #!#! at Skript-nightly.jar//ch.njol.skript.classes.data.SkriptClasses$10.change(SkriptClasses.java:433)
14:37:59 ERROR: #!#! at Skript-nightly.jar//ch.njol.skript.lang.util.SimpleExpression.change(SimpleExpression.java:263)
14:37:59 ERROR: #!#! at Skript-nightly.jar//ch.njol.skript.effects.EffChange.execute(EffChange.java:292)
14:37:59 ERROR: #!#! at Skript-nightly.jar//ch.njol.skript.lang.Effect.run(Effect.java:49)
14:37:59 ERROR: #!#! at Skript-nightly.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
14:37:59 ERROR: #!#! at Skript-nightly.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:88)
14:37:59 ERROR: #!#! at Skript-nightly.jar//ch.njol.skript.command.Commands.handleEffectCommand(Commands.java:201)
14:37:59 ERROR: #!#! at Skript-nightly.jar//ch.njol.skript.command.Commands$2.lambda$onPlayerChat$0(Commands.java:300)
14:37:59 ERROR: #!#! at org.bukkit.craftbukkit.scheduler.CraftFuture.run(CraftFuture.java:88)
14:37:59 ERROR: #!#! at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:482)
14:37:59 ERROR: #!#! at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1654)
14:37:59 ERROR: #!#! at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:471)
14:37:59 ERROR: #!#! at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1538)
14:37:59 ERROR: #!#! at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1246)
14:37:59 ERROR: #!#! at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:329)
14:37:59 ERROR: #!#! at java.base/java.lang.Thread.run(Thread.java:1583)
14:37:59 ERROR: #!#!
14:37:59 ERROR: #!#! Version Information:
14:37:59 ERROR: #!#! Skript: 2.8.7-nightly-b9b1ceb
14:37:59 ERROR: #!#! Flavor: skriptlang-nightly
14:37:59 ERROR: #!#! Date: 18:38:22.731990385
14:37:59 ERROR: #!#! Bukkit: 1.21-R0.1-SNAPSHOT
14:37:59 ERROR: #!#! Minecraft: 1.21
14:37:59 ERROR: #!#! Java: 21.0.2 (OpenJDK 64-Bit Server VM 21.0.2+13-LTS)
14:37:59 ERROR: #!#! OS: Mac OS X aarch64 14.4.1
14:37:59 ERROR: #!#!
14:37:59 ERROR: #!#! Server platform: Paper
14:37:59 ERROR: #!#!
14:37:59 ERROR: #!#! Current node: null
14:37:59 ERROR: #!#! Current item: remove [[long:1]] of ( tool of the player >> ChainedConverter{(class ch.njol.skript.util.slot.Slot -> class ch.njol.skript.aliases.ItemType) -> (class ch.njol.skript.aliases.ItemType -> class org.bukkit.inventory.ItemStack)}: ConverterInfo{from=class ch.njol.skript.util.slot.Slot,to=class org.bukkit.inventory.ItemStack,converter=ChainedConverter{(class ch.njol.skript.util.slot.Slot -> class ch.njol.skript.aliases.ItemType) -> (class ch.njol.skript.aliases.ItemType -> class org.bukkit.inventory.ItemStack)},flags=0}) from tool of the player
14:37:59 ERROR: #!#!
14:37:59 ERROR: #!#! Thread: Server thread
14:37:59 ERROR: #!#!
14:37:59 ERROR: #!#! Language: english
14:37:59 ERROR: #!#! Link parse mode: DISABLED
14:37:59 ERROR: #!#!
14:37:59 ERROR: #!#! End of Error.
14:37:59 ERROR: #!#!
Other
Error message said to report here
Agreement
- I have read the guidelines above and affirm I am following them with this report.