From ad470a4ad280b48dd3ea9af83dbb2a5b5bc818f3 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Fri, 9 Aug 2024 07:59:41 +0100 Subject: [PATCH] fix default check and invalid texture name --- spider.lua | 6 +++++- ...template).png => mobs_tree_monster_template.png} | Bin 2 files changed, 5 insertions(+), 1 deletion(-) rename textures/{mobs_tree_monster(template).png => mobs_tree_monster_template.png} (100%) 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