fix bugs that call Player.SetRadioRange cause different results in different languages

This commit is contained in:
zhurengong
2021-11-23 00:36:03 +08:00
parent ec89822fb3
commit 9dcfc5f80d
@@ -48,7 +48,7 @@ luaPlayer.SetRadioRange = function (character, range)
if (character.Inventory == nil) then return end
for item in character.Inventory.AllItems do
if item ~= nil and item.Name == "Headset" then
if item ~= nil and item.Prefab.Identifier == "headset" then
item.GetComponentString("WifiComponent").Range = range;
end
end