updated condition
This commit is contained in:
parent
c679cf919e
commit
a47927d2a6
@ -255,7 +255,7 @@ end
|
||||
|
||||
-- disable delete action (only applies to promoted players) and discard objects instead
|
||||
function onPlayerAction(player, action, targets)
|
||||
if action == Player.Action.Delete and player.admin ~= true then
|
||||
if action == Player.Action.Delete and not player.admin then
|
||||
for _, target in ipairs(targets) do
|
||||
local matColor = playermatApi.getMatColorByPosition(target.getPosition())
|
||||
local trash = guidReferenceApi.getObjectByOwnerAndType(matColor, "Trash")
|
||||
|
Loading…
Reference in New Issue
Block a user