summaryrefslogtreecommitdiff
path: root/skin_meta_api.lua
diff options
context:
space:
mode:
authorAlexander Weber <web.alexander@web.de>2018-01-07 19:09:52 +0100
committerAlexander Weber <web.alexander@web.de>2018-01-07 19:09:52 +0100
commit429874698ea5176e15a3b5703ac734b5b123d842 (patch)
tree560d03e39bae1038f6f483bec00546c36ffbaf06 /skin_meta_api.lua
parent7df6363aa0247068205a09815721164813849b19 (diff)
Add skins.get_skinlist_with_meta(key, value) and small adjustments
Diffstat (limited to 'skin_meta_api.lua')
-rw-r--r--skin_meta_api.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/skin_meta_api.lua b/skin_meta_api.lua
index 1e3bd99..5ff17f1 100644
--- a/skin_meta_api.lua
+++ b/skin_meta_api.lua
@@ -72,5 +72,7 @@ end
function skin_class:is_applicable_for_player(playername)
local assigned_player = self:get_meta("playername")
- return not assigned_player or assigned_player == playername
+ return assigned_player == nil or
+ assigned_player == playername or
+ assigned_player == true
end