diff options
author | BlockMen <nmuelll@web.de> | 2013-06-28 23:03:54 +0200 |
---|---|---|
committer | BlockMen <nmuelll@web.de> | 2013-06-28 23:03:54 +0200 |
commit | a22a08f06d7ee3221883649ad420548c3d85a162 (patch) | |
tree | 64e851661ca8d25f48c2c9b572bdefc7fc190ad8 /hunger.lua | |
parent | d3e8f7134aacacca5c5980ff108f576f7b1f4bd0 (diff) |
Update to 0.2
Diffstat (limited to 'hunger.lua')
-rw-r--r-- | hunger.lua | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,10 +1,12 @@ function hud.item_eat(hunger_change, replace_with_item) + minetest.chat_send_all("eat") return function(itemstack, user, pointed_thing) if itemstack:take_item() ~= nil then local h = tonumber(hud.hunger[user:get_player_name()]) h=h+hunger_change - if h>20 then h=20 end + if h>30 then h=30 end hud.hunger[user:get_player_name()]=h + hud.save_hunger(user) itemstack:add_item(replace_with_item) -- note: replace_with_item is optional --sound:eat end @@ -30,5 +32,5 @@ end overwrite("default:apple", 2, true) if minetest.get_modpath("farming") ~= nil then - overwrite("farming:bread", 6, false) + overwrite("farming:bread", 4, false) end |