putting a cottages:pitchfork in an item frame duplicates it #717
Labels
No Label
1. kind/balancing
1. kind/breaking
1. kind/bug
1. kind/construction
1. kind/documentation
1. kind/enhancement
1. kind/griefing
1. kind/invalid
1. kind/meme
1. kind/node limit
1. kind/other
1. kind/protocol
2. prio/controversial
2. prio/critical
2. prio/elevated
2. prio/good first issue
2. prio/interesting
2. prio/low
3. source/art
3. source/client
3. source/engine
3. source/ingame
3. source/integration
3. source/lag
3. source/license
3. source/mod upstream
3. source/unknown
3. source/website
4. step/approved
4. step/at work
4. step/blocked
4. step/discussion
4. step/help wanted
4. step/needs confirmation
4. step/partially fixed
4. step/question
4. step/ready to deploy
4. step/ready to QA test
4. step/want approval
5. result/cannot reproduce
5. result/duplicate
5. result/fixed
5. result/maybe
5. result/wontfix
ugh/petz
ugh/QA main
ugh/QA NOK
ugh/QA OK
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: your-land/bugtracker#717
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
pitchfork is not being removed from the player inventory upon placement in the item frame
Also, when it is taken out of the item frame again, it is a cottages:pitchfork_placed, which is stackable unlike the original item.
Compare #670
This is really interesting. The 2 bugs here are discrete - that the pitchfork is not removed from the player's inventory, and that it turns into the distinct "placed" variant when used on an itemframe.
The locus of the bug is in this code from cottages:
I'm not sure what the correct code looks like. Part of the issue is not checking the return value of
minetest.rotate_and_place
, but by that point, the wrong item is already in the frame.This behavior also prevents you from repairing the pitchfork in an anvil - but because right-clicking the anvil tries to put the
pitchfork_placed
in there, which isn't a damaged tool (!). You can use the electrumese pick to successfully put it the anvil for the moment, but that is "fixed" in #1701.Fixed by just making sure to call a the node's "on_rightclick" behavior before trying to place the pitchfork:
4fc9b84793
this is live