[Dup] Ghost workshops can be created via hearthling menu (and causes lua error)

Title:
Ghost workshops can be created via hearthling menu (and causes lua error)

Summary:
Ghost workshops can be created via hearthling menu , so multiple unclaimed workshops can be created ,
but when more then 1 gets build , you get the lua error below

Steps to reproduce:

  • promote hearthling to mason for example
  • make sure the mason is busy, build sleeping quarters , to keep him busy on a big project
    ( so he can’t immediately claim the build workshop task )
    important to be able to create multiple ghosts ,
  • once hearthling is busy select mason and click build workshop multiple times ( you get some of them )
  • if hearthling if finally starting to build workshop ( first one should be fine )
  • you should get the error on the unclaimed (workshops )

Expected Results:

  • not be able to place multiple ( yet , because shared queues or workshops are in )
  • 1 workshop or more ( but current build doesn’t let you build multiple per hearthling )
    but in any case don’t give the error

Actual Results:
multiple workshops can be build by 1 hearthling , and gives error

Notes:
ghost workshops are none selectable ( so not movable ) , I got to this build trying to move it via the buildworshop hearthling button on the char sheet.

Attachments:

Versions and Mods:
vanilla A11

release-453 (x64)
…nehearth/components/workshop/workshop_component.luac:41: attempt to index local ‘show_workshop_command’ (a nil value)
stack traceback:
stonehearth/services/server/threads/thread.luac:87: in function <stonehearth/services/server/threads/thread.luac:87>
…nehearth/components/workshop/workshop_component.luac:41: in function ‘set_crafter’
…town/orchestrators/create_workshop_orchestrator.luac:17: in function ‘_complete_construction’
…town/orchestrators/create_workshop_orchestrator.luac:6: in function 'run’
stonehearth/services/server/town/town.luac:93: in function '_thread_main’
stonehearth/services/server/threads/thread.luac:90: in function <stonehearth/services/server/threads/thread.luac:89>
[C]: in function 'xpcall’
stonehearth/services/server/threads/thread.luac:89: in function 'f’
radiant/lib/env.luac:8: in function <radiant/lib/env.luac:8>

2 posts were merged into an existing topic: [Con] Multiple Carpenter Workbenches