🐛 Fix tree decon toggle not working

This commit is contained in:
oof2win2
2021-09-19 12:19:43 +00:00
parent 912ac04fd5
commit 2e91017b16

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