Fix raillike bug (currently manifests itself on Android), and minor improvement to readability.

Corrects this annoying bug: <link>https://forum.minetest.net/viewtopic.php?f=3&t=9389&start=75#p149910</link> where horizontal raillikes will shoot into the sky.