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 End Sub
Private Sub ChangeTexture(ByVal n As Integer) Private Sub ChangeTexture(ByVal n As Integer)
If CurrentScreen.Identification = Screen.Identifications.OverworldScreen Then
If BlockTexturesTemp.Count = 0 Then If BlockTexturesTemp.Count = 0 Then
ClearAnimationResources() ClearAnimationResources()
CreateBlockTextureTemp() CreateBlockTextureTemp()
End If End If
If Me.CurrentSeason <> P3D.World.CurrentSeason Then If Me.CurrentSeason <> P3D.World.CurrentSeason AndAlso SeasonColorTexture <> "" Then
ClearAnimationResources() ClearAnimationResources()
CreateBlockTextureTemp() CreateBlockTextureTemp()
End If End If
End If
If Not Animations Is Nothing Then If Not Animations Is Nothing Then
Dim i = Animations(n).CurrentRow Dim i = Animations(n).CurrentRow
Dim j = Animations(n).CurrentColumn Dim j = Animations(n).CurrentColumn

View File

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

View File

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