LuaEntity::order_deconstruction() player parameter

Post Reply
User avatar
mickael9
Fast Inserter
Fast Inserter
Posts: 112
Joined: Mon Mar 14, 2016 4:04 am
Contact:

LuaEntity::order_deconstruction() player parameter

Post by mickael9 »

Currently, we have LuaTile::order_deconstruction(force, player) and LuaEntity::order_deconstruction(force).
Can we have LuaEntity::order_deconstruction(force, player) too so that the player index appears in the generated event?

Rseding91
Factorio Staff
Factorio Staff
Posts: 13204
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: LuaEntity::order_deconstruction() player parameter

Post by Rseding91 »

Ok, I've added it for the next version of 0.16.
If you want to get ahold of me I'm almost always on Discord.

User avatar
mickael9
Fast Inserter
Fast Inserter
Posts: 112
Joined: Mon Mar 14, 2016 4:04 am
Contact:

Re: LuaEntity::order_deconstruction() player parameter

Post by mickael9 »

I guess those should be changed too then:
  • LuaSurface::deconstruct_area
  • LuaSurface::cancel_deconstruct_area
  • LuaEntity::cancel_deconstruction
  • LuaTile::cancel_deconstruction
Edit: perhaps the force parameter ought to be passed to the on_marked_for_deconstruction and on_canceled_deconstruction events as well?

Post Reply

Return to “Implemented mod requests”