mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
allow changing amount of chunks loaded in as host, only load in extra chunks as host
This commit is contained in:
parent
ebb66dfb0a
commit
56533c5406
4 changed files with 11 additions and 3 deletions
|
@ -1,5 +1,4 @@
|
|||
<MagicNumbers
|
||||
_DEBUG_DONT_SAVE_MAGIC_NUMBERS="1"
|
||||
STREAMING_CHUNK_TARGET="36"
|
||||
>
|
||||
</MagicNumbers>
|
||||
</MagicNumbers>
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue