-
Notifications
You must be signed in to change notification settings - Fork 10
Auto replacement of blocks into the hand #462
Comments
It's some callback blocking the mod again. I'll investigate and fix that sh!t once more. |
@LeMagnesium we need to rewrite the funciton, i did this code snippet, but for the invtweak mod it doesn't work, we need to rewrite in minetest_game/default.
|
Just remove the rotate_node, we don't care about it. |
it's a lot of nodes which have this function instead of place_node(), it handle the sneak and other things.
|
It doesn't handle sneak, just the static placment, and it's useless. |
No it didn't, the function call an another function,
|
I personally think we should open an issue about that and let the devs properly fix their own sh*t. It's their fault, and their problem if logging and other callbacks do not work. Who here agrees? |
+1 invtweak mod is based on this callback on_place_node for check the inventory, i don't see anything to do with this, maybe a callback on_rotate_node. |
+1 @LeMagnesium |
Linked devs (from listed mods)maptools : https://github.com/minetest-mods/maptools @Calinou Well, sorry everyone for the notification, but it's needed... (EDIT ; I also tanslate all of this issue in english) |
This isn't something routine mods should ever have to consider. Either you need to make a mod that wedges in before the rotate function to do what you're looking for, or make your changes at the subgame level. |
I would rather do that. Minetest's dev will apparently never find a way to go around their sh*tty forceful callback blocking system, so we'll have to fix on our repo. And next time they complain about node placement not logged (on Vanilla), I won't help. |
Well, finally do we want to fix that on our own way or I closed this issue (players will be sad...) ? |
fixed 3752bf2 |
Moved to |
Can you simply make rotate_node call the registered on_placenode functions in lieu? |
Take 1 stone brick alone into your hand, and keep a stack anywhere else into your inventory.
Place your single stone bricks block.
It is automagically replaced with the stack you had "anywhere else into your inventory".
Do the same with a with a default:tree
You have to choose by yourself the replacing stack.
I'm sure it's not the only affected block, but I don't have other examples. Could we make a rule to make sure it always happens as for bricks, for constancy?
The text was updated successfully, but these errors were encountered: