entity api change (#442)

* Update warps.lua

* .

* .
This commit is contained in:
2026-06-26 15:45:46 +01:00
committed by GitHub
parent 71ab3e7be4
commit 1f3689a0ac
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ Roles.define_flag_trigger("is_spectator", function(player, state)
end)
Roles.define_flag_trigger("is_jail", function(player, state)
if player.character then
player.character.active = not state
player.character.disabled_by_script = not state
end
end)
+1 -1
View File
@@ -182,7 +182,7 @@ function Warps.make_warp_area(warp_id)
}
entity.destructible = false
entity.health = 0
entity.minable = false
entity.minable_flag = false
entity.rotatable = false
-- Save reference of the last power pole
@@ -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
+1 -1
View File
@@ -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