summaryrefslogtreecommitdiff
path: root/src/nodedef.h
diff options
context:
space:
mode:
authorParamat <paramat@users.noreply.github.com>2018-04-20 20:26:30 +0100
committerGitHub <noreply@github.com>2018-04-20 20:26:30 +0100
commit0e554706ac244b9eebc62e52fccb1a4b9e81d2a4 (patch)
tree25453cc7f520495e167527c90f2f0044860a1872 /src/nodedef.h
parent87ad4d8e7f25210cd28d9f2b372aa00aa3dab929 (diff)
downloadminetest-0e554706ac244b9eebc62e52fccb1a4b9e81d2a4.tar.gz
minetest-0e554706ac244b9eebc62e52fccb1a4b9e81d2a4.tar.bz2
minetest-0e554706ac244b9eebc62e52fccb1a4b9e81d2a4.zip
Node resolver: Make error on fallback optional, disable for mapgen aliases
Diffstat (limited to 'src/nodedef.h')
-rw-r--r--src/nodedef.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nodedef.h b/src/nodedef.h
index f99f7f321..058eebb7e 100644
--- a/src/nodedef.h
+++ b/src/nodedef.h
@@ -733,9 +733,10 @@ public:
virtual void resolveNodeNames() = 0;
bool getIdFromNrBacklog(content_t *result_out,
- const std::string &node_alt, content_t c_fallback);
+ const std::string &node_alt, content_t c_fallback,
+ bool error_on_fallback = true);
bool getIdsFromNrBacklog(std::vector<content_t> *result_out,
- bool all_required=false, content_t c_fallback=CONTENT_IGNORE);
+ bool all_required = false, content_t c_fallback = CONTENT_IGNORE);
void nodeResolveInternal();