mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-28 16:24:45 +02:00
Maybe this'll prevent animatedblock crash
This commit is contained in:
parent
2dd64aa7be
commit
eb69a8ee5b
@ -184,19 +184,17 @@
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub ChangeTexture(ByVal n As Integer)
|
Private Sub ChangeTexture(ByVal n As Integer)
|
||||||
'If Core.GameOptions.GraphicStyle = 1 Then
|
|
||||||
|
|
||||||
If BlockTexturesTemp.Count = 0 Then
|
If BlockTexturesTemp.Count = 0 Then
|
||||||
ClearAnimationResources()
|
ClearAnimationResources()
|
||||||
CreateBlockTextureTemp()
|
CreateBlockTextureTemp()
|
||||||
End If
|
End If
|
||||||
|
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
|
||||||
If BlockTexturesTemp.ContainsKey(AnimationNames(n) & "_" & (j + columns(n) * i)) = True Then
|
If BlockTexturesTemp.ContainsKey(AnimationNames(n) & "_" & (j + columns(n) * i)) = True Then
|
||||||
Me.Textures(n) = BlockTexturesTemp(AnimationNames(n) & "_" & (j + columns(n) * i))
|
Me.Textures(n) = BlockTexturesTemp(AnimationNames(n) & "_" & (j + columns(n) * i))
|
||||||
End If
|
End If
|
||||||
|
End If
|
||||||
'End If
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Overrides Sub ResultFunction(ByVal Result As Integer)
|
Public Overrides Sub ResultFunction(ByVal Result As Integer)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user