mirror of
https://github.com/minetest-mods/skinsdb.git
synced 2025-01-08 23:20:17 +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)
|
||||
local assigned_player = self:get_meta("playername")
|
||||
return assigned_player == nil or
|
||||
assigned_player == playername or
|
||||
assigned_player == true
|
||||
return assigned_player == nil or assigned_player == true or
|
||||
(assigned_player:lower() == playername:lower())
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user