Various fixes for 'stairs' and 'hud' mods (#91)

Fix undeclared global variables in 'stairs' and 'hud' mods.

Stairs mod:
Add to 'depends.txt' to enable cheeseblock and wool slabs/stairs.
Improve detection of mobs mods.
Remove 'mobs:honey_block' slabs/stairs as the node does not exist.
This commit is contained in:
Paramat 2017-08-01 14:53:10 +01:00 committed by Maksim Gamarnik
parent 6949188f12
commit 6d66c11a28
3 changed files with 6 additions and 8 deletions

View File

@ -1,3 +1,4 @@
HUD_ENABLE_HUNGER = nil -- MC add line **************************************************
HUD_IW_MAX = 8 HUD_IW_MAX = 8
HUD_IW_TICK = 0.4 HUD_IW_TICK = 0.4

View File

@ -1 +1,4 @@
default default
mobs
mobs_animal
wool

View File

@ -285,7 +285,7 @@ end
--= Mobs Mod --= Mobs Mod
if mobs and mobs.mod and mobs.mod == "redo" then if minetest.get_modpath("mobs") and minetest.get_modpath("mobs_animal") then
grp = {crumbly = 3, flammable = 2, not_in_craft_guide = 1} grp = {crumbly = 3, flammable = 2, not_in_craft_guide = 1}
@ -295,12 +295,6 @@ stairs.register_all("cheeseblock", "mobs:cheeseblock",
"Cheese Block", "Cheese Block",
stairs.dirt) stairs.dirt)
stairs.register_all("honey_block", "mobs:honey_block",
grp,
{"mobs_honey_block.png"},
"Honey Block",
stairs.dirt)
end end
--= Lapis Mod --= Lapis Mod
@ -805,4 +799,4 @@ stairs.register_all("wool_dark_green", "wool:dark_green",
"Dark Green Wool", "Dark Green Wool",
stairs.wool) stairs.wool)
end end