#error on deploying recipe

40 messages · Page 1 of 1 (latest)

steep hare
#

Error occurred while handling event 'ServerEvents.recipes': java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
event.recipes.create.deploying("kubejs:slotted_copper_disk",["kubejs:copper_disk","#c:tools/knives"]).keepHeldItem()
through experimentation, this is the offending line, specifically the .keepHeldItem()

worn quiverBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

oblique elk
#

is this using kjs 6.1?

scenic depotBOT
#

KubeJS Create is an addon that will allow you to use KJS scripts with Create more easily.

oblique elk
#

seems like kjs create was updated

#

yesterday

#

is there no stacktrace in the log?

steep hare
#

i'll pull up the stack trace now

oblique elk
#

post the full log instead please

steep hare
#

i'm pretty sure i updated kjs create really recently though

#

oh ok

#

like the server.log file in logs/kubejs

scenic depotBOT
#

Paste version of server.log from @steep hare

steep hare
#

hey wait

#

this is after i tried removing the line

#

one second

oblique elk
steep hare
scenic depotBOT
#

Paste version of server.log from @steep hare

steep hare
#

there we go

oblique elk
#

does it stop erroring once you remove .keepHeldItem()?

steep hare
#

it stops having that error

#

my code is still in poor shape generally

#

interestingly it does successfully make it keep the held item before stopping my code dead

oblique elk
#

@ocean wing FA_MewPeek

loud socket
#

it needs to be changed to event.recipes.createDeploying instead of event.recipes.create.deploying I had the same issue

steep hare
#

ah, thanks!

worn quiverBOT
steep hare
cinder seal
#

unless we accidentally removed keepHeldItem() entirely

#

ah, that’s the issue

#

you can keepHeldItem(true)

#

i‘ll readd this when i have chair to sit down on again

cinder seal
#

fuck it

#

i grabbed a kitchen chair, it's fixed now