mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-05 21:51: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)
|
||||
$Trainer.hat = outfit_id
|
||||
|
||||
dye_color = $Trainer.dyed_clothes[outfit_id]
|
||||
dye_color = $Trainer.dyed_hats[outfit_id]
|
||||
if dye_color
|
||||
$Trainer.clothes_color = dye_color
|
||||
$Trainer.hat_color = dye_color
|
||||
else
|
||||
$Trainer.clothes_color = nil
|
||||
$Trainer.hat_color = nil
|
||||
end
|
||||
|
||||
$game_map.refreshPlayerOutfit()
|
||||
|
||||
Reference in New Issue
Block a user