Avoid "undeclared variable" warning if no tubelib installed

This commit is contained in:
bell07 2018-01-11 22:07:04 +01:00 committed by GitHub
parent b8166014ca
commit 2ec31086d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -356,7 +356,7 @@ end
------------------------------------------------------------------------ ------------------------------------------------------------------------
-- Optional adaption to tubelib -- Optional adaption to tubelib
------------------------------------------------------------------------ ------------------------------------------------------------------------
if tubelib then if minetest.global_exists("tubelib") then
tubelib.register_node("gravelsieve:auto_sieve3", tubelib.register_node("gravelsieve:auto_sieve3",
{ {
"gravelsieve:auto_sieve0", "gravelsieve:auto_sieve0",