Fix controller can_insert function returning number instead of boolean (#68)

This commit is contained in:
OgelGames 2022-02-01 00:08:44 +11:00 committed by GitHub
parent 70207e64f9
commit 508a8c38a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -479,7 +479,7 @@ local function register_controller()
end
def.tube.can_insert = function(pos, node, stack, tubedir)
return controller_allow_metadata_inventory_put(pos, "src", nil, stack, nil)
return controller_allow_metadata_inventory_put(pos, "src", nil, stack, nil) > 0
end
def.tube.connect_sides = {