From 15557e6dc495dae3b1d1b1dfdc48463245055bd4 Mon Sep 17 00:00:00 2001 From: Cam B Date: Thu, 21 Jan 2021 23:52:02 +0000 Subject: [PATCH] Return nil on pull, not false --- tubelib/command.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tubelib/command.lua b/tubelib/command.lua index 48f7e39..bfadf1d 100644 --- a/tubelib/command.lua +++ b/tubelib/command.lua @@ -404,7 +404,7 @@ function tubelib.pull_items(pos, side, player_name) if npos == nil then return end if tubelib_NodeDef[name] and tubelib_NodeDef[name].on_pull_item then if Tube:is_valid_side(name, nside) == false then - return false + return nil end return tubelib_NodeDef[name].on_pull_item(npos, nside, player_name) end @@ -440,7 +440,7 @@ function tubelib.pull_stack(pos, side, player_name) if npos == nil then return end if tubelib_NodeDef[name] then if Tube:is_valid_side(name, nside) == false then - return false + return nil end if tubelib_NodeDef[name].on_pull_stack then return tubelib_NodeDef[name].on_pull_stack(npos, nside, player_name)