Closed Emojigit closed 5 months ago
Error → spec/api_spec.lua @ 6
CNC API
api.lua:386: attempt to index global 'technic' (a nil value)
Just use technic_cnc.use_technic
to check if technic
namespace is usable with CNC.
Technic is optional dependency for CNC, it also works without technic mod. Both cases are tested: with and without technic mod.
The technic.machine_on_inventory_*
functions don't need to return functions, you can use minetest.get_node(pos).name
to get the node name.
For some reason, pipeworks
is requiring fakelib
... That's why mtt
failed.
For some reason,
pipeworks
is requiringfakelib
... That's whymtt
failed.
Yeah, you can ignore that, i'll create another PR to add that dependency :+1:
EDIT: https://github.com/mt-mods/technic/pull/365 (or add the line here, i don't mind either way :shrug:)
Do you think it would be a good idea to handle non-player actions like default
does? With all the extra logging, there's going to be a lot of spam from pipeworks moving items.
I've created a new issue about my suggestion, so I'm merging this.
This PR adds logging functions to every inventory action. The existing logging functions for chests are also improved. This PR is ready for review.