Skip to content

Commit

Permalink
ensure streaming keep alive
Browse files Browse the repository at this point in the history
  • Loading branch information
bgkillas committed Nov 17, 2024
1 parent 01cd69f commit 70002c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quant.ew/files/core/player_fns.lua
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ function player_fns.replace_player_entity(new_entity, player_data)
local old_entity = player_data.entity
player_data.entity = new_entity
ctx.player_data_by_local_entity[new_entity] = player_data
if player_data.peer_id ~= ctx.my_player.peer_id then
if EntityGetFirstComponentIncludingDisabled(new_entity, "StreamingKeepAliveComponent") == nil then
EntityAddComponent2(new_entity, "StreamingKeepAliveComponent")
end
print("Replaced player entity: "..old_entity.." -> "..new_entity)
Expand Down

0 comments on commit 70002c6

Please sign in to comment.