allow changing amount of chunks loaded in as host, only load in extra chunks as host

This commit is contained in:
bgkillas 2024-08-25 08:55:49 -04:00
parent ebb66dfb0a
commit 56533c5406
4 changed files with 11 additions and 3 deletions

View file

@ -227,6 +227,9 @@ function OnPlayerSpawned( player_entity ) -- This runs when player entity has be
EntityInflictDamage(player_entity, 1000000, "DAMAGE_CURSE", "dont rejoin", "NONE", 0, 0, GameGetWorldStateEntity())
GameAddFlagRun("ew_kill_player")
end
if ctx.host_id == ctx.my_id then
np.MagicNumbersSetValue("STREAMING_CHUNK_TARGET", ctx.proxy_opt.chunk_target)
end
end
local function on_world_pre_update_inner()