minetest-mods / xdecor

A decoration mod for Minetest meant to be light, simple and well-featured
Other
29 stars 46 forks source link

workbench creates unknown nodes #90

Closed aerozoic closed 6 years ago

aerozoic commented 6 years ago

It's a bit complicated to explain how to reproduce this glitch so i made short video to simplify things. To start you must have one node that IS cuttable and a stack of at least 2 nodes that are NOT cuttable. The key to this bug is to right click the non-cuttable stack after it's placed in the cut slot. It is only possible to put a non-cuttable stack into the cut slot using the method shown. All left clicks except the ones noted: https://youtu.be/j4-vJcEVW4g :large_orange_diamond:

aerozoic commented 6 years ago

Strangely that does prevent the unknown nodes, but it wasn't the cube that was causing the issue. It could be done with any of the 12 cuts. I experimented with your fix and found that simply having an underscore is all that's needed...

if stackname == inputname and registered_nodes[inputname.."_"] then

:large_orange_diamond: