Page 1 of 1

surface.can_place_entity always false for ungenerated chunks

Posted: Wed Aug 12, 2015 1:38 pm
by yeganer
I don't know if this is a bug or intended behavior but surface.can_place_entity seems to always return false if the chunk/position isn't generated yet, even if the object wouldn't collide with anything.

Simple test:

Code: Select all

/c game.player.print(serpent.block(game.player.surface.can_place_entity({name='stone', position = game.player.surface.map_gen_settings.shift})))
/c game.player.teleport(game.player.surface.map_gen_settings.shift)
/c game.player.print(serpent.block(game.player.surface.can_place_entity({name='stone', position = game.player.surface.map_gen_settings.shift})))

Re: surface.can_place_entity always false for ungenerated chunks

Posted: Wed Aug 12, 2015 2:39 pm
by kovarex
This is not a bug, as there is no way how to know.