From 429874698ea5176e15a3b5703ac734b5b123d842 Mon Sep 17 00:00:00 2001 From: Alexander Weber Date: Sun, 7 Jan 2018 19:09:52 +0100 Subject: Add skins.get_skinlist_with_meta(key, value) and small adjustments --- skin_meta_api.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'skin_meta_api.lua') 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 -- cgit v1.2.3