Plethora Peripherals

Plethora Peripherals

3M Downloads

Turtle inventory not updating after kinetic.use()

pajotg opened this issue · 2 comments

commented

When using kinetic.use() with a water/glass bottle on a cauldron and using turtle.getItemDetail() to see what the resulting item is still returns the old item

test code to reproduce:

local kinetic = peripheral.find("plethora:kinetic")

print("item detail before:", turtle.getItemDetail().name)
kinetic.use()
print("item detail after:", turtle.getItemDetail().name)
sleep(1)
print("item detail after 1s:", turtle.getItemDetail().name)
turtle.transferTo(turtle.getSelectedSlot())
print("item detail after transfer:", turtle.getItemDetail().name)

currently this prints out the same thing over and over until the the turtle.transferTo() call, even though it does absolutely nothing

commented

Could be related to changes in turtle.getItemDetail() logic in latest CC:T commits.

commented

Should probably call setDirty when unloading the turtle inventory: