Fixed freeze

This commit is contained in:
JappaWakka 2023-06-05 17:29:17 +02:00
parent c6caf0dbbb
commit fb63697ebd
2 changed files with 8 additions and 2 deletions

View File

@ -212,8 +212,9 @@
Private Sub ChangeTexture()
If Core.GameOptions.GraphicStyle = 1 Then
If WaterTexturesTemp.Count = 0 OrElse Water.WaterTexturesTemp.ContainsKey("_0") = False Then
If WaterTexturesTemp.Count = 0 OrElse Water.WaterTexturesTemp.ContainsKey("_0") = False OrElse Water.WaterTexturesTemp.ContainsKey(AdditionalValue & "_0") = False Then
ClearAnimationResources()
AddDefaultWaterAnimationResources()
CreateWaterTextureTemp()
End If

View File

@ -132,8 +132,13 @@
Private Sub ChangeTexture()
If Core.GameOptions.GraphicStyle = 1 Then
If WaterfallTexturesTemp.Count = 0 Or WaterTexturesTemp.Count = 0 Then
If WaterfallTexturesTemp.Count = 0 Or WaterTexturesTemp.Count = 0 OrElse Waterfall.WaterTexturesTemp.ContainsKey("_0") = False OrElse Waterfall.WaterTexturesTemp.ContainsKey(AdditionalValue & "_0") = False Then
ClearAnimationResources()
AddDefaultWaterAnimationResources()
CreateWaterTextureTemp()
End If
ClearAnimationResources()
CreateWaterTextureTemp()
End If