Fix games
This commit is contained in:
parent
ccf69633fe
commit
a7df206e59
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue