Make rails selectable. 2/head
authoruser <nobody>
Wed, 20 Jun 2012 04:33:26 +0000 (04:33 +0000)
committeruser <nobody>
Wed, 20 Jun 2012 04:33:26 +0000 (04:33 +0000)
Rails weren't selectable, and couldn't be removed from a map asides from
using worldedit (or maybe sand)

mods/default/init.lua

index 58d39771afb33871336e5e1753271aefe76f0823..5eb1584b7d738690b4ebd4b5cce60cb71710d23b 100644 (file)
@@ -939,7 +939,8 @@ minetest.register_node("default:rail", {
        walkable = false,
        selection_box = {
                type = "fixed",
-               --fixed = <default>
+                -- but how to specify the dimensions for curved and sideways rails?
+                fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
        },
        groups = {bendy=2,snappy=1,dig_immediate=2},
 })