1
0
mirror of https://codeberg.org/tenplus1/mobs_monster.git synced 2024-12-22 08:50:27 +01:00

fix default check and invalid texture name

This commit is contained in:
tenplus1 2024-08-09 07:59:41 +01:00
parent 68ae991ca6
commit ad470a4ad2
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,10 @@
-- Translation support -- Translation support
local S = minetest.get_translator("mobs_monster") 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 get_velocity = function(self)
local v = self.object:get_velocity() local v = self.object:get_velocity()
@ -285,7 +289,7 @@ minetest.register_node(":mobs:cobweb", {
groups = {snappy = 1, disable_jump = 1}, groups = {snappy = 1, disable_jump = 1},
is_ground_content = false, is_ground_content = false,
drop = "farming:string", drop = "farming:string",
sounds = default and default.node_sound_leaves_defaults() sounds = mod_def and default.node_sound_leaves_defaults()
}) })
minetest.register_craft({ minetest.register_craft({

View File

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB