Fix NPCs updating too often

This commit is contained in:
JappaWakka 2023-10-03 09:43:58 +02:00
parent eff7029411
commit 241cb8af9c
2 changed files with 4 additions and 1 deletions

View File

@ -505,7 +505,6 @@
Me.Rotation.Y = GetRotationFromInteger(ChangeRotation).Y
End If
End If
Me.Update()
MyBase.UpdateEntity()
End Sub

View File

@ -950,6 +950,10 @@ Public Class Level
OffsetmapEntities.RemoveAt(i)
i -= 1
Else
If TryCast(OffsetmapEntities(i), NPC) IsNot Nothing Then
CType(OffsetmapEntities(i), NPC).Update()
End If
OffsetmapEntities(i).UpdateEntity()
End If
Else