'Item Dispense' Function Throws NullPointerException When Triggered
Hello! I've been developing a dungeon using the MythicDungeon plugin and have been running into an issue regarding any 'Item Dispense' function instance. For background information, I'm running the 2.0.1-snapshot version of MythicDungeons on a 1.21.4 server. Furthermore, I'm using a resource pack that alters certain items (dominantly, the item's name or texture, or both). However, I've attempted to solve this myself under multiple tested conditions, but all have led to the same exception being thrown.
java.lang.NullPointerException: component
at java.base/java.util.Objects.requireNonNull(Objects.java:259) ~[?:?]
at net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializerImpl.serialize(PlainTextComponentSerializerImpl.java:62) ~[adventure-text-serializer-plain-4.20.0.jar:?]
at net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer.serialize(PlainTextComponentSerializer.java:76) ~[adventure-text-serializer-plain-4.20.0.jar:?]
at MythicDungeons-2.0.1-SNAPSHOT.jar/net.playavalon.mythicdungeons.dungeons.functions.FunctionGiveItem.runFunction(FunctionGiveItem.java:102) ~[MythicDungeons-2.0.1-SNAPSHOT.jar:?]
at MythicDungeons-2.0.1-SNAPSHOT.jar/net.playavalon.mythicdungeons.dungeons.functions.meta.FunctionMulti.runFunction(FunctionMulti.java:108) ~[MythicDungeons-2.0.1-SNAPSHOT.jar:?]
at MythicDungeons-2.0.1-SNAPSHOT.jar/net.playavalon.mythicdungeons.api.parents.elements.DungeonFunction.execute(DungeonFunction.java:239) ~[MythicDungeons-2.0.1-SNAPSHOT.jar:?]
at MythicDungeons-2.0.1-SNAPSHOT.jar/net.playavalon.mythicdungeons.api.parents.elements.DungeonTrigger$1.run(DungeonTrigger.java:269) ~[MythicDungeons-2.0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:78) ~[paper-1.21.4.jar:1.21.4-225-0767902]
at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:474) ~[paper-1.21.4.jar:1.21.4-225-0767902]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1659) ~[paper-1.21.4.jar:1.21.4-225-0767902]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1529) ~[paper-1.21.4.jar:1.21.4-225-0767902]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1251) ~[paper-1.21.4.jar:1.21.4-225-0767902]
at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:310) ~[paper-1.21.4.jar:1.21.4-225-0767902]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
I'm lost on where to go from here, so any help is greatly appreciated! Feel free to contact me through here or by Discord @ArcaneBeast.