Skip to content

Commit 508a8c3

Browse files
authored
Fix controller can_insert function returning number instead of boolean (#68)
1 parent 70207e6 commit 508a8c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/controller.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ local function register_controller()
479479
end
480480

481481
def.tube.can_insert = function(pos, node, stack, tubedir)
482-
return controller_allow_metadata_inventory_put(pos, "src", nil, stack, nil)
482+
return controller_allow_metadata_inventory_put(pos, "src", nil, stack, nil) > 0
483483
end
484484

485485
def.tube.connect_sides = {

0 commit comments

Comments
 (0)