luaGuiElement::Camera wrong surface_index
Posted: Thu Apr 27, 2017 3:27 am
Camera element gui seems to be adding 1 to the passed surfaced_index. Subtracting 1 from the index causes it to show the correct surface.
gui = player.gui.goal.add{
type = "camera",
name = "test_camera",
position = position
surface_index = surface.index
}
The camera will point at surface.index + 1
gui = player.gui.goal.add{
type = "camera",
name = "test_camera",
position = position
surface_index = surface.index
}
The camera will point at surface.index + 1