Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Abort when trying to set a not registered node (#7011)
I removed the MapNode constructor which takes a nodename and gives the node's id or CONTENT_IGNORE The code which used this constructor (two places) now handles the situation of not registered nodes correctly: * minetest.set_node and similar functions make minetest crash when a not registered node is passed * reverting a node with rollback aborts if the node is not registered
- Loading branch information
Showing
with
13 additions
and 21 deletions.
- +0 −12 src/mapnode.cpp
- +0 −5 src/mapnode.h
- +7 −2 src/rollback_interface.cpp
- +6 −2 src/script/common/c_content.cpp