-
Notifications
You must be signed in to change notification settings - Fork 577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chest registration overrides definition fields, including inventory callbacks #3152
Labels
Comments
This is no engine issue however, it's a Minetest Game dehardcoding request. |
appgurueu
changed the title
allow_put not running?
Chests override definition fields, including allow inventory callbacks when chest is protected
Aug 30, 2024
appgurueu
changed the title
Chests override definition fields, including allow inventory callbacks when chest is protected
Chest registration overrides definition fields, including inventory callbacks
Aug 30, 2024
Ah, I see, the docs were confusing because the line:
The engine docs should be changed to reflect the difference between them. Maybe we can change how defs are handled in the default.chest.register_chest function, Something like this:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Minetest version
Irrlicht device
win32
Operating system and version
Windows 11 home
CPU model
No response
GPU model
No response
Active renderer
No response
Summary
I am using the allow_put node callable and it doesn't seem to be running:
I do have a theory that this function that is connected to the allow_put callback is being overwritten by the register_chests function which can be found here:
https://github.com/minetest/minetest_game/blob/master/mods/default/chests.lua#L89
Steps to reproduce
Run test mod:
allow_put_test.zip
The text was updated successfully, but these errors were encountered: