Jump to content

[Server Crash] - Error in OnWorked in bee.lua


DarkXero

Recommended Posts

Bug Submission:

Category: Server Crash

Issue Title: Error in OnWorked in bee.lua

Issue Description: Games crashes on catching a homeless bee.

line 46: local owner = inst.components.homeseeker ~= nil and inst.components.homeseeker.home

When no beehive home is present, inst.components.homeseeker ~= nil returns false, and "false and nil" gets evaluated to false.

Then in the next line, owner is not nil, so game tries to index childspawner on a boolean.

Steps to Reproduce: Step 1) Craft bugnet

Step 2) DebugSpawn("bee")

Step 3 opt) Kill a beehive

Step 4) Catch a homeless bee

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...