mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-03-01 00:35:36 +08:00
优化
This commit is contained in:
@@ -505,6 +505,8 @@ func (w *World) InitPlayerWorldAvatar(player *model.Player) {
|
||||
if !player.SceneJump && (worldAvatar.avatarEntityId != 0 || worldAvatar.weaponEntityId != 0) {
|
||||
continue
|
||||
}
|
||||
scene.DestroyEntity(worldAvatar.avatarEntityId)
|
||||
scene.DestroyEntity(worldAvatar.weaponEntityId)
|
||||
worldAvatar.avatarEntityId = scene.CreateEntityAvatar(player, worldAvatar.avatarId)
|
||||
worldAvatar.weaponEntityId = scene.CreateEntityWeapon()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user