Skip to content

Commit

Permalink
Universe overflow kid status fix
Browse files Browse the repository at this point in the history
Apparently Starbound doesn't like minus infinity.
  • Loading branch information
ErinaSugino committed Apr 10, 2024
1 parent 4279b43 commit d4648b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/sexbound/override/npc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ end

function Sexbound.NPC:updateKidStatus()
local worldTime = world.time()
local kidTime = status.statusProperty('kid', -math.huge)
local kidTime = status.statusProperty('kid')

if kidTime <= worldTime then
if kidTime == nil or kidTime <= worldTime then
status.removeEphemeralEffect('sexbound_kid')
status.setStatusProperty('kid', nil)
self._isKid = false
Expand Down

0 comments on commit d4648b7

Please sign in to comment.