Fix seeds not being subtracted on_place #2
Loading…
Reference in New Issue
No description provided.
Delete Branch "(deleted):fix_seed_dupe"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The overwritten on_place's of this mod neglect to return the itemstack (or anything for that matter) hence nothing is removed on_place in the overwritten functions.
Testing
I have tested this and confirmed that:
@cora looking at the code after all this time, I am confused why your solution works.
Can you explain what is happening to
itemstack
here? If so, please do so.Should the code maybe return what
old_on_place()
returns?https://github.com/minetest/minetest/blob/master/doc/lua_api.md?plain=1#L8815
return old on place would probably work too but since that will also juts modify itemstack returning itemstack should result in the same if i am not mistaken
appears to have been fixed by
92d1671079
Yes. Sorry, I forgot to close this PR. Thank you for your help!
Pull request closed