mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 13:53:45 +01:00
Merge pull request 'Add a setting to disable hunger' (#2895) from hunger_setting into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2895
This commit is contained in:
commit
b144a93fd8
@ -11,10 +11,9 @@ Hunger is enabled when damage is enabled.
|
|||||||
If the damage setting is changed within the game, this does NOT
|
If the damage setting is changed within the game, this does NOT
|
||||||
update the hunger mechanic, so the game must be restarted for this
|
update the hunger mechanic, so the game must be restarted for this
|
||||||
to take effect. ]]
|
to take effect. ]]
|
||||||
if minetest.settings:get_bool("enable_damage") == true then
|
mcl_hunger.active = false
|
||||||
|
if minetest.settings:get_bool("enable_damage") == true and minetest.settings:get_bool("mcl_enable_hunger") ~= false then
|
||||||
mcl_hunger.active = true
|
mcl_hunger.active = true
|
||||||
else
|
|
||||||
mcl_hunger.active = false
|
|
||||||
end
|
end
|
||||||
|
|
||||||
mcl_hunger.HUD_TICK = 0.1
|
mcl_hunger.HUD_TICK = 0.1
|
||||||
|
@ -77,6 +77,9 @@ mcl_hand_range (Hand range) float 4.5 1 128
|
|||||||
# Default:10
|
# Default:10
|
||||||
mcl_hand_range_creative (Creative mode hand range) float 10 1 128
|
mcl_hand_range_creative (Creative mode hand range) float 10 1 128
|
||||||
|
|
||||||
|
# If enabled the hunger mechanic will be active
|
||||||
|
mcl_enable_hunger (Hunger mechanic) bool true
|
||||||
|
|
||||||
[Mobs]
|
[Mobs]
|
||||||
# If enabled, mobs will spawn naturally. This does not affect
|
# If enabled, mobs will spawn naturally. This does not affect
|
||||||
# affect mob spawners.
|
# affect mob spawners.
|
||||||
|
Loading…
Reference in New Issue
Block a user