mirror of
https://github.com/minetest-mods/drawers.git
synced 2024-11-22 14:43:45 +01:00
Fix controller can_insert
function returning number instead of boolean (#68)
This commit is contained in:
parent
70207e64f9
commit
508a8c38a5
@ -479,7 +479,7 @@ local function register_controller()
|
|||||||
end
|
end
|
||||||
|
|
||||||
def.tube.can_insert = function(pos, node, stack, tubedir)
|
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
|
end
|
||||||
|
|
||||||
def.tube.connect_sides = {
|
def.tube.connect_sides = {
|
||||||
|
Loading…
Reference in New Issue
Block a user