-
Notifications
You must be signed in to change notification settings - Fork 578
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
Bug: mod bones - server crash when use 'minetest.punch_node()' from any mod #3145
Comments
Reproduced by spawning new bones (do not place manually). minetest.register_chatcommand("p", {
func = function(name, param)
local pos = minetest.get_player_by_name(name):get_pos()
local node_name = #param > 0 and param or "bones:bones"
local np = minetest.find_node_near(pos, 4, node_name, true)
if not np then
return false, "No node found"
end
minetest.punch_node(np)
return true, "OK!"
end
}) Even though the Lua API states that What is the expected result? Would you like to remove the node and destroy all of its contents, drop the contents as item entities, or disallow any interaction? |
Difficult to say what the expected result is. Depends on the mod which uses the method. |
see PR #3146 |
Version:
Error message from log:
reproduction:
possible solution:
The text was updated successfully, but these errors were encountered: