Jump to content

Nightlight crash the game when trying to join world


. . .
  • Fixed

I'm getting this crash on a world with no caves and no mods but there is an existing nightlight in the world

Spoiler

[00:11:31]: [string "scripts/util.lua"]:173: bad argument #1 to 'pairs' (table expected, got nil)
LUA ERROR stack traceback:
=[C]:-1 in (global) pairs (C) <-1--1>
scripts/util.lua:173 in (field) invert (Lua) <171-177>
   t = nil
   invt = table: 000000009EF2AEC0
scripts/components/nightlightmanager.lua:85 in (method) UpdateNightLightPosition (Lua) <69-89>
   self =
      inst = 100030 - world (valid:true)
      nightlights = table: 000000004125A5E0
   nightlight = 100347 - nightlight (valid:true)
   nightlightdata = table: 0000000041323920
   x = 168.84800720215
   y = 0
   z = -15.987999916077
   node = table: 00000000403CE2E0
   node_index = 11
scripts/components/nightlightmanager.lua:109 in (field) fn (Lua) <101-111>
scripts/scheduler.lua:186 in (method) OnTick (Lua) <164-216>
   self =
      running = table: 0000000045DB1B60
      waitingfortick = table: 0000000045DB1BB0
      hibernating = table: 0000000045DB1C50
      tasks = table: 0000000045DB1B10
      waking = table: 000000009ED13130
      attime = table: 0000000045DB1CA0
   tick = 1
   k = PERIODIC 100347: 0.000000
   v = true
   already_dead = false
scripts/scheduler.lua:409 in (global) RunScheduler (Lua) <407-415>
   tick = 1
scripts/update.lua:240 in () ? (Lua) <224-298>
   dt = 0.033333335071802
   tick = 1
   i = 1

 


Steps to Reproduce

have a nightlight in the world (before the update?)

try to join a world (with no caves?)




User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...