Skip to content

Turtle inventory leftovers cause incorrect item drop #20

Description

@Kan18

If a shop owner accidentally leaves an item in the first inventory slot of a shop turtle, and somebody attempts to purchase from the shop, the turtle will dispense the item which was already in its inventory rather than give a refund.

I have a few thoughts here

  • maybe try to import the turtle inventory into storage before any purchase
  • maybe also validate the count of items pulled into the turtle inventory
  • also validate the item with turtle.getItemDetail right before it gets dropped

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions