From a47927d2a6f10a6388880f3f21ef49ca5a861e41 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Fri, 5 Jul 2024 00:23:57 +0200 Subject: [PATCH] updated condition --- src/core/Global.ttslua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Global.ttslua b/src/core/Global.ttslua index fc4bf93c..785afb9c 100644 --- a/src/core/Global.ttslua +++ b/src/core/Global.ttslua @@ -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")