ComfyFactory / ComfyFactorio

A compilation of factorio scenarios, featuring many different maps.
GNU General Public License v3.0
45 stars 53 forks source link

MTN: Spawning wrecks during mining can get the player stuck #454

Closed vadcx closed 6 months ago

vadcx commented 7 months ago

I had no ammo on me and couldn't break myself free. You can't break them with bare hands. This thing spawned on me while I was mining rocks. I think the player should be moved out if were to become stuck.

Whether to apply the same to biters is debatable. They can get you stuck inside them the same way.

stuckmining

Gerkiz commented 6 months ago

I've adjusted the function Public.unstuck_player so it's called 5 ticks after the entity spawn, thus it should allow the function to get a better result.