summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-05 04:56:25 +0200
committerWuzzy <almikes@aol.com>2016-08-05 04:56:25 +0200
commitf62081758f367dfb9b7c0282881c0b5a0dea703f (patch)
tree57f73506d6bcf3a0aa14acd35e55764dcf40f284 /init.lua
parent4ad3160a1133c8932d7b10365a324cd9a5a155eb (diff)
Fix liquid pointers
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 865b5d9..da6c0e2 100644
--- a/init.lua
+++ b/init.lua
@@ -217,6 +217,8 @@ doc.new_category("nodes", {
formstring = formstring .. toolcaps_to_text(data.def.tool_capabilities) .. "\n"
formstring = formstring .. "Collidable: "..yesno(data.def.walkable).. "\n"
+ local liquid
+ if data.def.liquidtype ~= "none" then liquid = true else liquid = false end
if data.def.pointable == true then
formstring = formstring .. "Pointable: Yes\n"
elseif liquid then
@@ -224,8 +226,7 @@ doc.new_category("nodes", {
else
formstring = formstring .. "Pointable: No\n"
end
- local liquid
- if data.def.liquidtype ~= "none" then liquid = true else liquid = false end
+ formstring = formstring .. "\n"
if liquid then
formstring = formstring .. "This block is a liquid with these properties:\n"
local range, renew, viscos