Calling ItemStackJS.getItem on certain item stacks will break the code on server
Prunoideae opened this issue ยท 0 comments
Minecraft Version
1.18.2
KubeJS Version
1802.5.2-build.428
Rhino Version
1802.1.12-build.171
Architectury Version
4.4.59
Forge/Fabric Version
Forge 40.1.19
Describe your issue
Calling:
Item.of("naturesaura:gold_fiber").getItem() //or
Item.of("quark:backpack").getItem()
on server will break the code they're being executed in without error or log.
This script:
onEvent("player.logged_in", event => {
console.info("foo")
console.info(Item.of("naturesaura:gold_fiber").getItem())
console.info("no")
})
Will produce these in server.txt
and latest.log
respectively:
[15:15:11] [INFO ] Loaded 13/13 KubeJS server scripts in 0.01 s
[15:15:27] [INFO ] server_scripts:test.js:2: foo
[20May2022 15:15:27.201] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Prunoideae joined the game
[20May2022 15:15:27.223] [Server thread/INFO] [KubeJS Server/]: server_scripts:test.js:2: foo
[20May2022 15:15:29.646] [Server thread/WARN] [net.minecraft.server.MinecraftServer/]: Can't keep up! Is the server overloaded? Running 2478ms or 49 ticks behind
They work fine on SinglePlayer, which is quite weird.
Crash report/logs
No response