Page 1 of 1

create_entity{fast_replace=true} can fail to drop belts

Posted: Wed Feb 15, 2017 6:02 pm
by Mylon
Case 1:

Image

If I do surface.create_entity{name="fast-transport-belt", position=game.player.selected.position, fast_replace=true} then a yellow belt item-on-ground is created. This behavior is expected.

Case 2:

Image

Same command, no yellow belt is created. Expected behavior: Yellow belt is created nearby.

This only seems to be a problem with belts. Other entities spill properly, even around and onto belts.

Re: create_entity{fast_replace=true} can fail to drop belts

Posted: Wed Feb 15, 2017 7:33 pm
by Rseding91
Fixed for 0.15. You can work around the problem by adding the player=... option when using fast_replace to put the items into the player instead of dropping them.