Use nodebox for rendering cables

This commit is contained in:
2023-03-11 19:50:49 +01:00
parent 4e7499279c
commit 7ce091f423
5 changed files with 149 additions and 42 deletions

View File

@@ -42,7 +42,7 @@ minetest.register_craft({
-- Node callbacks
minetest.register_on_placenode(function(pos,newNode)
local def=minetest.registered_nodes[newNode.name]
if def and def._industrialtest_hasPowerInput then
if def and def.groups and def.groups._industrialtest_hasPowerInput then
industrialtest.api.triggerNeighbours(pos)
end
end)