minetest-mods / stamina

Adds hunger (stamina) to minetest.
17 stars 18 forks source link

fix bug when eaten item is replaced with copies of itself #43

Closed fluxionary closed 1 year ago

fluxionary commented 1 year ago

per this engine PR, https://github.com/minetest/minetest/pull/13286

The replace_with_item can be added to the slot of the wield item, which is afterwards overwritten. This causes item loss. This PR fixes this. Also, if the inventory is full, the replace item is first split up and only the remains are dropped.