fix quarry disabling via digiline not working

This commit is contained in:
OgelGames 2022-11-15 01:13:45 +11:00
parent 6929a646c5
commit 1686d89d15

View File

@ -412,7 +412,7 @@ local function digiline_action(pos, _, channel, msg)
dig_level = -(math.floor(meta:get_int("step") / num_steps) + 1),
})
elseif msg.command == "set" then
if msg.enabled then
if msg.enabled ~= nil then
meta:set_int("enabled", msg.enabled == true and 1 or 0)
end
if msg.restart == true then