mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-07-26 10:36:22 +09:00
@@ -43,7 +43,7 @@ local function prevent_deconstruction(entity)
|
||||
end
|
||||
|
||||
-- Not minable, selectable, or deconstructive
|
||||
if not entity.minable or not entity.prototype.selectable_in_game or entity.has_flag("not-deconstructable") then
|
||||
if not entity.minable_flag or not entity.prototype.selectable_in_game or entity.has_flag("not-deconstructable") then
|
||||
return true
|
||||
end
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ end
|
||||
local function protect_entity(entity)
|
||||
if entity and entity.valid then
|
||||
entity.destructible = false
|
||||
entity.minable = false
|
||||
entity.minable_flag = false
|
||||
entity.rotatable = false
|
||||
entity.operable = false
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user