diff --git a/spider.lua b/spider.lua index 14f7e54..c8a144b 100644 --- a/spider.lua +++ b/spider.lua @@ -1,6 +1,10 @@ -- Translation support local S = minetest.get_translator("mobs_monster") +-- check for default mod +local mod_def = minetest.get_modpath("default") + +-- helper local get_velocity = function(self) local v = self.object:get_velocity() @@ -285,7 +289,7 @@ minetest.register_node(":mobs:cobweb", { groups = {snappy = 1, disable_jump = 1}, is_ground_content = false, drop = "farming:string", - sounds = default and default.node_sound_leaves_defaults() + sounds = mod_def and default.node_sound_leaves_defaults() }) minetest.register_craft({ diff --git a/textures/mobs_tree_monster(template).png b/textures/mobs_tree_monster_template.png similarity index 100% rename from textures/mobs_tree_monster(template).png rename to textures/mobs_tree_monster_template.png