Fixes issue when wearing hat

This commit is contained in:
infinitefusion
2024-12-30 15:58:35 -05:00
parent c2954b8e84
commit 6a3b607690

View File

@@ -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()