diff options
| author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-01-31 19:39:31 -0500 | 
|---|---|---|
| committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-01-31 19:39:31 -0500 | 
| commit | 39f5cba27eef35877c91291f518974f34130fcb6 (patch) | |
| tree | 117a9d1b7d4ee5f78f73e1216e982c366ed9ecc6 /vines | |
| parent | 2922421f4a88e56a0a1c819f62bf2bc287835388 (diff) | |
| download | dreambuilder_modpack-39f5cba27eef35877c91291f518974f34130fcb6.tar dreambuilder_modpack-39f5cba27eef35877c91291f518974f34130fcb6.tar.gz dreambuilder_modpack-39f5cba27eef35877c91291f518974f34130fcb6.tar.bz2 dreambuilder_modpack-39f5cba27eef35877c91291f518974f34130fcb6.tar.xz dreambuilder_modpack-39f5cba27eef35877c91291f518974f34130fcb6.zip | |
Huge update - lots of mods:
areas, biome_lib, blox, bobblocks, boost_cart, homedecor, mobs,
coloredwood, ilights, inbox, item_tweaks, moreblocks, moreores,
pipeworks, plasticbox, signs_lib, stainedglass, roads, unifieddyes,
vines, worldedit, xban2, maybe some others I didn't think about ;-)
Diffstat (limited to 'vines')
| -rw-r--r-- | vines/functions.lua | 10 | 
1 files changed, 6 insertions, 4 deletions
| diff --git a/vines/functions.lua b/vines/functions.lua index db120a6..26e7cc4 100644 --- a/vines/functions.lua +++ b/vines/functions.lua @@ -32,7 +32,7 @@ vines.register_vine = function( name, defs, biome )      sunlight_propagates = true,      paramtype = "light",      paramtype2 = "wallmounted", -    buildable_to = true, +    buildable_to = false,      tiles = { vine_image_end },      drawtype = drawtype,      inventory_image = vine_image_end, @@ -70,7 +70,7 @@ vines.register_vine = function( name, defs, biome )      sunlight_propagates = true,      paramtype = "light",      paramtype2 = "wallmounted", -    buildable_to = true, +    buildable_to = false,      tiles = { vine_image_middle },      wield_image = vine_image_middle,      drawtype = drawtype, @@ -82,8 +82,10 @@ vines.register_vine = function( name, defs, biome )        local node = minetest.get_node( pos )        local bottom = {x=pos.x, y=pos.y-1, z=pos.z}        local bottom_node = minetest.get_node( bottom ) -      if minetest.get_item_group( bottom_node.name, "vines") then -        minetest.remove_node( bottom ) +      if minetest.get_item_group( bottom_node.name, "vines") > 0 then +        -- Calling `remove_node` directly would cause +        -- a stack overflow for really long vines. +        minetest.after( 0, minetest.remove_node, bottom )        end      end,      after_dig_node = function( pos, node, oldmetadata, user ) | 
