Fix few cable place/dig issues
Tests for machine build/dig
Fix machine build/dig bugs
Fix test for machine building
Fix machines acting like cables when placed
Inline fixtures for building/digging tests
fix ignored luacheck warnings
(#105)
fix long lines
(#105)
Add more tests for bugs found
Fix tests, add minetest.get_us_time (implement using socket.gettime)
To ensure that only rubber tree trunk nodes that are part of trees
regenerate, rather than those that are used as building blocks, check
that they are sufficiently close to rubber tree leaves. This replaces the
older rule that naturally-grown trunks regenerate (regardless of leaves)
and manually-placed trunks don't (even though manually building a tree
otherwise works). The detection of manually-placed trunks was in any
case broken for users of moretrees, because that mod fails to set the
flag signalling manual placement.
Incidentally also fix a bug that caused rubber tree branches (horizontal
trunk nodes) to turn vertical when regenerating latex. Rather than set
the complete node structure, only switch the type name, as does the tree
tap when emptying the node.