1
0
mirror of https://codeberg.org/tenplus1/mobs_animal.git synced 2025-07-26 12:00:21 +02:00

fix default check

This commit is contained in:
tenplus1
2024-08-09 07:59:02 +01:00
parent a240d0c937
commit 10865e9ab4
2 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,9 @@
-- Translation support
local S = minetest.get_translator("mobs_animal")
-- check for default mod
local mod_def = minetest.get_modpath("default")
-- Cow by sirrobzeroone
mobs:register_mob("mobs_animal:cow", {
@ -261,7 +264,7 @@ minetest.register_node(":mobs:cheeseblock", {
tiles = {"mobs_cheeseblock.png"},
is_ground_content = false,
groups = {oddly_breakable_by_hand = 3},
sounds = default and default.node_sound_dirt_defaults()
sounds = mod_def and default.node_sound_dirt_defaults()
})
minetest.register_craft({