summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <Wuzzy2@mail.ru>2018-05-29 20:37:54 +0200
committerWuzzy <Wuzzy2@mail.ru>2018-05-29 20:37:54 +0200
commitec3ad1b2d7f363442f6faf8c5ce88299cd04bdd2 (patch)
tree0dd72f89f2259ebfda1d1f000cd1fa41d10bda84
parentb6648a454183a1e2c44182ef03bdf13a305d6b31 (diff)
Parse group fake_liquid=1origin/masterorigin/HEAD
-rw-r--r--API.md7
-rw-r--r--init.lua2
2 files changed, 8 insertions, 1 deletions
diff --git a/API.md b/API.md
index 26cb118..f8d3b87 100644
--- a/API.md
+++ b/API.md
@@ -351,6 +351,13 @@ definitions are already automatically added to this factoid.
* `dig_immediate`: This group is already covered by the default factoids of this
mod
+
+## Groups interpretations
+Nodes which are technically a liquid will not be considered liquids by this mod
+if the group `fake_liquid=1` is used. Useful for stuff like cobwebs.
+
+
+
## Dependencies
If you only add the custom fields to your items, you do *not* need to depend
on this mod. If you use anything else from this mod (e.g. a function), you
diff --git a/init.lua b/init.lua
index ec1bbf9..bdbba21 100644
--- a/init.lua
+++ b/init.lua
@@ -592,7 +592,7 @@ doc.add_category("nodes", {
formstring = entry_image(data)
datastring = factoids_header(data, "nodes")
- local liquid = data.def.liquidtype ~= "none"
+ local liquid = data.def.liquidtype ~= "none" and minetest.get_item_group(data.itemstring, "fake_liquid") == 0
if not forbidden_core_factoids.basics then
datastring = datastring .. S("Collidable: @1", yesno(data.def.walkable)) .. "\n"
if data.def.pointable == true then