diff options
Diffstat (limited to 'item_transport.lua')
-rw-r--r-- | item_transport.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/item_transport.lua b/item_transport.lua index fb9f626..7b64e7a 100644 --- a/item_transport.lua +++ b/item_transport.lua @@ -6,6 +6,7 @@ function pipeworks.tube_inject_item(pos, start_pos, velocity, item) -- Take item in any format local stack = ItemStack(item) local obj = luaentity.add_entity(pos, "pipeworks:tubed_item") + if not obj then return end obj:set_item(stack:to_string()) obj.start_pos = vector.new(start_pos) obj:setvelocity(velocity) |