From 442654df1fd67b1661dbb9470fe3427c81ffbfae Mon Sep 17 00:00:00 2001 From: Josh Mars Date: Fri, 7 Apr 2017 10:44:24 -0400 Subject: [PATCH 1/2] Fix mistake in falling_ice.lua It should be "caverealms:check_attached_node(p, n)" instead of "check_attached_node(p, n)" at line 189. --- falling_ice.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/falling_ice.lua b/falling_ice.lua index 4e04b5f..bdccb75 100644 --- a/falling_ice.lua +++ b/falling_ice.lua @@ -186,7 +186,7 @@ function caverealms:nodeupdate_single(p, delay) end if minetest.get_item_group(n.name, "attached_node") ~= 0 then - if not check_attached_node(p, n) then + if not caverealms:check_attached_node(p, n) then caverealms:drop_attached_node(p) caverealms:nodeupdate(p) end From 0197003288b3a48e3dad1f9366da02af9fc888f6 Mon Sep 17 00:00:00 2001 From: Josh Mars Date: Fri, 7 Apr 2017 10:48:56 -0400 Subject: [PATCH 2/2] Use the default permanent fire caverealms:constant_flame is no longer necessary as fire:permanent_flame was added to default game. --- nodes.lua | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/nodes.lua b/nodes.lua index d7ff674..87a48d5 100644 --- a/nodes.lua +++ b/nodes.lua @@ -517,36 +517,7 @@ minetest.register_node("caverealms:mushroom_gills", { }) --define special flame so that it does not expire -minetest.register_node("caverealms:constant_flame", { - description = "Fire", - drawtype = "plantlike", - tiles = {{ - name="fire_basic_flame_animated.png", - animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=1}, - }}, - inventory_image = "fire_basic_flame.png", - light_source = 14, - groups = {igniter=2,dig_immediate=3,hot=3, not_in_creative_inventory=1}, - drop = '', - walkable = false, - buildable_to = true, - damage_per_second = 4, - - after_place_node = function(pos, placer) - if pos.y > DM_TOP then - minetest.remove_node(pos) - end - if not (minetest.get_modpath("moontest")) then - fire.on_flame_add_at(pos) - end - end, - - after_dig_node = function(pos, oldnode, oldmetadata, digger) - if not (minetest.get_modpath("moontest")) then - fire.on_flame_remove_at(pos) - end - end, -}) +minetest.register_alias("caverealms:constant_flame", "fire:permanent_flame") --node to create a treasure chest in DM Forts. minetest.register_node("caverealms:s_chest", {