mirror of
https://github.com/minetest-mods/technic.git
synced 2025-03-14 08:30:34 +01:00
Merge 5e268c39afec7c9b4273d01bba43926f72ac6b6b into 42efc7e47c8e89ed5436261786bbfa1740300730
This commit is contained in:
commit
dcc9dd601d
@ -141,7 +141,7 @@ end
|
||||
function technic.machine_can_dig(pos, player)
|
||||
local meta = minetest.get_meta(pos)
|
||||
local inv = meta:get_inventory()
|
||||
if not inv:is_empty("src") or not inv:is_empty("dst") then
|
||||
if not inv:is_empty("src") or not inv:is_empty("dst") or not inv:is_empty("upgrade1") or not inv:is_empty("upgrade2") then
|
||||
if player then
|
||||
minetest.chat_send_player(player:get_player_name(),
|
||||
S("Machine cannot be removed because it is not empty"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user