Applied small patch from Sean884 ( https://forum.minetest.net/viewtopic.php?id=2896&p=3 )