Merge pull request #220 from oof2win2/dev

Fix tree decon toggle not working
This commit is contained in:
Cooldude2606
2021-09-22 19:02:45 +01:00
committed by GitHub

View File

@@ -58,6 +58,10 @@ Event.add(defines.events.on_marked_for_deconstruction, function(event)
-- Allowed to decon this entity, but not fast
if allow ~= 'fast' then return end
local player = game.get_player(index)
if not HasEnabledDecon:get(player) then return end
-- Allowed fast decon on this entity, just trees
local head = tree_queue._head + 1
if not last_user and entity.type ~= 'cliff' then