fix "sand" vacuum tubes not working

This commit is contained in:
LeMagnesium 2015-11-15 14:24:07 -05:00 committed by Vanessa Ezekowitz
parent fca10f613d
commit fd1318d9e1

View File

@ -112,7 +112,7 @@ minetest.register_abm({nodenames = {"group:vacuum_tube"},
chance = 1,
label = "Vacuum tubes",
action = function(pos, node, active_object_count, active_object_count_wider)
if node.name == "pipeworks:sand_tube" then
if node.name:find("pipeworks:sand_tube") then
vacuum(pos, 2)
else
local radius = minetest.get_meta(pos):get_int("dist")