Fix games

This commit is contained in:
Maksim Gamarnik 2016-02-17 00:50:51 +02:00
parent ccf69633fe
commit a7df206e59
2 changed files with 2 additions and 2 deletions

View File

@ -182,7 +182,7 @@ end
function core.item_eat(hp_change, replace_with_item) function core.item_eat(hp_change, replace_with_item)
return function(itemstack, user, pointed_thing) -- closure return function(itemstack, user, pointed_thing) -- closure
local pos = user:getpos() local pos = user:getpos()
pos.y = pos.y + item_drop_settings.player_collect_height pos.y = pos.y + item_drop_settings.player_collect_height+0.5
local itemname = itemstack:get_name() local itemname = itemstack:get_name()
local texture = minetest.registered_items[itemname].inventory_image local texture = minetest.registered_items[itemname].inventory_image
minetest.add_item(pos, drop) minetest.add_item(pos, drop)

View File

@ -10,7 +10,7 @@ lightcorrect = {}
local light = (minetest.get_timeofday()*2) local light = (minetest.get_timeofday()*2)
if light < 0.4 then if light < 0.4 then
for _,player in ipairs(minetest.get_connected_players()) do for _,player in ipairs(minetest.get_connected_players()) do
player:override_day_night_ratio((light)+0.25) player:override_day_night_ratio((light)+0.2)
end end
else else
for _,player in ipairs(minetest.get_connected_players()) do for _,player in ipairs(minetest.get_connected_players()) do