mirror of
https://github.com/minetest-mods/technic.git
synced 2025-04-16 01:10:37 +02:00
fix for crash when digging machine with upgrades.
This commit is contained in:
parent
8d554d2e21
commit
5e268c39af
@ -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