mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixes issue when wearing hat
This commit is contained in:
@@ -72,11 +72,11 @@ def putOnHat(outfit_id, silent = false)
|
|||||||
outfit = get_hat_by_id(outfit_id)
|
outfit = get_hat_by_id(outfit_id)
|
||||||
$Trainer.hat = outfit_id
|
$Trainer.hat = outfit_id
|
||||||
|
|
||||||
dye_color = $Trainer.dyed_clothes[outfit_id]
|
dye_color = $Trainer.dyed_hats[outfit_id]
|
||||||
if dye_color
|
if dye_color
|
||||||
$Trainer.clothes_color = dye_color
|
$Trainer.hat_color = dye_color
|
||||||
else
|
else
|
||||||
$Trainer.clothes_color = nil
|
$Trainer.hat_color = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
$game_map.refreshPlayerOutfit()
|
$game_map.refreshPlayerOutfit()
|
||||||
|
|||||||
Reference in New Issue
Block a user