From d4648b717b8d4e754d98be25369fcc401b6bad3a Mon Sep 17 00:00:00 2001 From: ErinaSugino <121646352+ErinaSugino@users.noreply.github.com> Date: Wed, 10 Apr 2024 22:48:08 +0200 Subject: [PATCH] Universe overflow kid status fix Apparently Starbound doesn't like minus infinity. --- scripts/sexbound/override/npc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/sexbound/override/npc.lua b/scripts/sexbound/override/npc.lua index f499ff0b..0decf19f 100644 --- a/scripts/sexbound/override/npc.lua +++ b/scripts/sexbound/override/npc.lua @@ -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