Correct node definitons for pine saplings and pine needles 374/head
authorPilzAdam <pilzadam@minetest.net>
Sun, 7 Dec 2014 00:00:33 +0000 (01:00 +0100)
committerPilzAdam <pilzadam@minetest.net>
Sun, 7 Dec 2014 10:57:37 +0000 (11:57 +0100)
mods/default/nodes.lua

index 3c7d4f1375aedad5ac5a82ae4493271b6da4f773..b0f7287b0caca9c07fe36131e7772198dcef2486 100644 (file)
@@ -1155,7 +1155,8 @@ minetest.register_node("default:pine_needles",{
        tiles = {"default_pine_needles.png"},
        waving = 1,
        paramtype = "light",
-       groups = {snappy=3,leafdecay=3,leaves=1},
+       is_ground_content = false,
+       groups = {snappy=3, leafdecay=3, flammable=2, leaves=1},
        drop = {
                max_items = 1,
                items = {
@@ -1184,8 +1185,13 @@ minetest.register_node("default:pine_sapling", {
        wield_image = "default_pine_sapling.png",
        paramtype = "light",
        walkable = false,
+       is_ground_content = true,
+       selection_box = {
+               type = "fixed",
+               fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3}
+       },
        groups = {snappy=2,dig_immediate=3,flammable=2,attached_node=1,sapling=1},
-       sounds = default.node_sound_defaults(),
+       sounds = default.node_sound_leaves_defaults(),
 })
 
 minetest.register_node("default:pinetree", {