surface.can_place_entity always false for ungenerated chunks

Bugs that are actually features.
Post Reply
yeganer
Long Handed Inserter
Long Handed Inserter
Posts: 74
Joined: Mon Jul 06, 2015 12:07 pm
Contact:

surface.can_place_entity always false for ungenerated chunks

Post 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})))

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: surface.can_place_entity always false for ungenerated chunks

Post by kovarex »

This is not a bug, as there is no way how to know.

Post Reply

Return to “Not a bug”