Merge pull request #6 from bell07/patch-1

Avoid "undeclared variable" warning if no tubelib installed
This commit is contained in:
joe7575 2018-01-12 14:14:11 +01:00 committed by GitHub
commit 094490ced4
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",