mirror of
https://github.com/minetest-mods/skinsdb.git
synced 2025-01-24 06:40:20 +01:00
Merge pull request #10 from minetest-mods/player_assignment_not_case_sensitive
Compare player assignment non case sensitive
This commit is contained in:
commit
8d708ee405
@ -73,7 +73,6 @@ end
|
|||||||
|
|
||||||
function skin_class:is_applicable_for_player(playername)
|
function skin_class:is_applicable_for_player(playername)
|
||||||
local assigned_player = self:get_meta("playername")
|
local assigned_player = self:get_meta("playername")
|
||||||
return assigned_player == nil or
|
return assigned_player == nil or assigned_player == true or
|
||||||
assigned_player == playername or
|
(assigned_player:lower() == playername:lower())
|
||||||
assigned_player == true
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user