Mining an entity returns crafting ingredients

by ptx0

With this mod, mining buildings will return the items required to craft it instead of the actual entity being mined. Works with expensive/normal mode, and (probably) all mods.

Overhaul
27 days ago
1.0 - 2.0
183

b ghost's

3 years ago

i get this message
was changing yellow ghosts to red belt

The mod Mining returns ingredients only (1.1.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event mining-ingredients-only::on_player_mined_entity (ID 65)
mining-ingredients-only/control.lua:3: attempt to index field 'items_to_place_this' (a nil value)
stack traceback:
mining-ingredients-only/control.lua:3: in function <mining-ingredients-only/control.lua:1>

3 years ago

i've pushed a potential fix but I haven't tested it, let me know if that solved your problem.

3 years ago

i've tested it but i'm not sure exactly what you're doing to reproduce the problem, however, the new version allows me to swap belts and ghosts without crashes.

3 years ago

yeah that fixed it thnx for the mod