It would be nice to have an additional parameter on Surface.create_entity that works in conjunction with fast_replace = true called no_item, which is also a boolean. When true, the fast replace will not yield an item, when false, which is the default, fast_replace will operate as normal.
The rationale behind this is that I am trying to speed up chest/container deconstruction in a mod and I need to preserve existing wirings and other stuff like filters and control logic conditions etc. The easiest and most efficient way to that will be to reuse the fast_replace mechanic already in place. This, however, will either drop an item onto the map or give the player an item, requiring me to add additional logic to the mod, whereas the simple parameter would free me from this terrible task of adding more logic to the mod
How about it?
Surface create_entity fast_replace simulation
Moderator: ickputzdirwech
-
- Burner Inserter
- Posts: 16
- Joined: Thu May 25, 2017 8:03 pm
- Contact:
Re: Surface create_entity fast_replace simulation
Might be better to post this here: viewforum.php?f=28 as that's the place for API change requests
Re: Surface create_entity fast_replace simulation
Thanks for the hint, will do.