typical error message (cant seem to figure it out)

oke it works kinda dont get a error now but now it also dont spawns a new item if i select that slot again hmm anyway thx for your help