mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-22 16:10:18 +01:00
Merge branch 'master' into 'master'
Fix digging of locked inventory nodes Closes #34 and #33 See merge request VanessaE/homedecor_modpack!21
This commit is contained in:
commit
bc55cde65c
@ -141,9 +141,9 @@ function homedecor.handle_inventory(name, def, original_def)
|
|||||||
stack:get_count()
|
stack:get_count()
|
||||||
end
|
end
|
||||||
|
|
||||||
local can_dig = def.can_dig
|
local can_dig = def.can_dig or default_can_dig
|
||||||
def.can_dig = function(pos, player)
|
def.can_dig = function(pos, player)
|
||||||
return default.can_interact_with_node(player, pos) and (can_dig and (can_dig(pos, player) or true))
|
return default.can_interact_with_node(player, pos) and (can_dig and can_dig(pos, player) == true)
|
||||||
end
|
end
|
||||||
|
|
||||||
def.on_key_use = function(pos, player)
|
def.on_key_use = function(pos, player)
|
||||||
|
Loading…
Reference in New Issue
Block a user