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:
parent
68ae991ca6
commit
ad470a4ad2
@ -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({
|
||||
|
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 9.2 KiB |
Loading…
Reference in New Issue
Block a user