surface.can_place_entity always false for ungenerated chunks
Posted: Wed Aug 12, 2015 1:38 pm
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:
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})))