More AnimatedBlock issues fixed

This commit is contained in:
JappaWakka 2023-10-17 20:30:22 +02:00
parent bc4e42d1f3
commit fce1309183
3 changed files with 11 additions and 7 deletions

View File

@ -191,14 +191,16 @@
End Sub
Private Sub ChangeTexture(ByVal n As Integer)
If CurrentScreen.Identification = Screen.Identifications.OverworldScreen Then
If BlockTexturesTemp.Count = 0 Then
ClearAnimationResources()
CreateBlockTextureTemp()
End If
If Me.CurrentSeason <> P3D.World.CurrentSeason Then
If Me.CurrentSeason <> P3D.World.CurrentSeason AndAlso SeasonColorTexture <> "" Then
ClearAnimationResources()
CreateBlockTextureTemp()
End If
End If
If Not Animations Is Nothing Then
Dim i = Animations(n).CurrentRow
Dim j = Animations(n).CurrentColumn

View File

@ -116,6 +116,7 @@
Water.ClearAnimationResources()
Whirlpool.LoadedWaterTemp = False
Waterfall.ClearAnimationResources()
AnimatedBlock.ClearAnimationResources()
Logger.Debug("---Cleared ContentPackManager---")
End Sub

View File

@ -1533,6 +1533,7 @@ Public Class NewMainMenuScreen
Waterfall.ClearAnimationResources()
Water.AddDefaultWaterAnimationResources()
Waterfall.AddDefaultWaterAnimationResources()
AnimatedBlock.ClearAnimationResources()
World.IsMainMenu = False
If _isGameJolt Then