summaryrefslogtreecommitdiff
path: root/src/mapnode.h
diff options
context:
space:
mode:
authorHybridDog <ovvv@web.de>2019-03-07 08:31:25 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2019-03-07 08:31:25 +0100
commit431d8a9b83be858193328fe59e75026fa023393f (patch)
treeb5773cb8dd581f4e65ff4977e148483b23ad4d0b /src/mapnode.h
parent3066d76e33070f0ec598b522b519fd6c1ddaf10e (diff)
downloadminetest-431d8a9b83be858193328fe59e75026fa023393f.tar.gz
minetest-431d8a9b83be858193328fe59e75026fa023393f.tar.bz2
minetest-431d8a9b83be858193328fe59e75026fa023393f.zip
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
Diffstat (limited to 'src/mapnode.h')
-rw-r--r--src/mapnode.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mapnode.h b/src/mapnode.h
index 6e48bce8c..7a3d30ddc 100644
--- a/src/mapnode.h
+++ b/src/mapnode.h
@@ -145,11 +145,6 @@ struct MapNode
param2(a_param2)
{ }
- // Create directly from a nodename
- // If name is unknown, sets CONTENT_IGNORE
- MapNode(const NodeDefManager *ndef, const std::string &name,
- u8 a_param1=0, u8 a_param2=0);
-
bool operator==(const MapNode &other) const noexcept
{
return (param0 == other.param0