Page 1 of 1

[2.0.72] LuaPlayer::build_from_cursor with cursor_ghost fails

Posted: Tue Oct 28, 2025 5:54 pm
by Gweneph
Right now it seems that build_from_cursor and can_build from cursor ignore any crusor_ghost you have: doing nothing and returning false respectively.

Reproduction:
/c game.player.clear_cursor()
/c game.player.cursor_ghost = "stone-furnace"
/c game.player.build_from_cursor{ position = game.player.position, build_mode = defines.build_mode.forced }

Actual result:
no ghost

Expected result:
a ghost right where the player is.

can_build_from_cursor agrees that nothing will happen.

If this behavoir is expected, then this post is a mod interface request to have these functions consider the cursor_ghost.