Don't let robots take only-in-cursor items
Posted: Fri Sep 24, 2021 10:54 pm
This is very much a "me" problem but I have an issue and this is a solution I have come up with that doesn't involve tons of Lua.
My mod includes a "build gun" feature, where instead of crafting buildings you can just place them and the necessary materials are taken directly from your inventory. To make this work, the cursor stack is populated with the item needed to place the building, which has been given the only-in-cursor flag.
This all works fine, but only because my mod removed construction robots. I'd like to add them back in.
Deconstruction works just fine. But when placing a building, the robot sees that the item is in the cursor and happily takes the item to place the building - for free!
I think by far the easiest fix for this would be for robots to not take only-in-cursor items from your cursor. I don't believe this change will affect any existing mod, nor the base game. Could this change be implemented?
My mod includes a "build gun" feature, where instead of crafting buildings you can just place them and the necessary materials are taken directly from your inventory. To make this work, the cursor stack is populated with the item needed to place the building, which has been given the only-in-cursor flag.
This all works fine, but only because my mod removed construction robots. I'd like to add them back in.
Deconstruction works just fine. But when placing a building, the robot sees that the item is in the cursor and happily takes the item to place the building - for free!
I think by far the easiest fix for this would be for robots to not take only-in-cursor items from your cursor. I don't believe this change will affect any existing mod, nor the base game. Could this change be implemented?