z_mirror/RateCalculator
git clone https://git.raiguard.me/z_mirror/RateCalculator
494331b
trunk
1local migrations ={} 2 3--- @param e ConfigurationChangedData 4function migrations . on_configuration_changed ( e ) 5local rcalc_changes =e . mod_changes [ script . mod_name ] 6if not rcalc_changes then 7return 8end 9 10local old_version =rcalc_changes . old_version 11if not old_version or helpers . compare_versions ( old_version , "3.0.0" ) >= 0 then 12return 13end 14 15for _ , player in pairs ( game . players ) do 16for _ , child in pairs ( player . gui . screen . children ) do 17if child . get_mod () == "RateCalculator" then 18child . destroy () 19end 20end 21end 22global ={ gui ={} } 23end 24 25return migrations