samolego / Taterzens

Minecraft serverside NPC / Citizens like mod.
https://samolego.github.io/Taterzens
MIT License
59 stars 41 forks source link

The edit interface can delete your inventory (but not the NPC) #154

Open Guerdi opened 1 year ago

Guerdi commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

Platform(s)

Environment(s)

Versions

To Reproduce Steps to reproduce the behavior:

  1. Launch server or solo world
  2. Put in your inventory anything like some dirt or some cookies
  3. Run /npc create
  4. Right click on it and select edit then behavior
  5. Type an invalide value like juste "word" and click Done
  6. See "An unexpected error occurred trying to execute that command" in chat and your inventory is reset

Expected behavior Your inventory should be restored when the command does not run correctly with the interface.

Additional context Once this bug is triggered, the /npc remove does not seem to work anymore, the npc reappears immediately. A /kill doesn't work either and only worldedit worked for me.

samolego commented 1 year ago

Uh, that's really strange. Thanks for reporting