forked from VoxeLibre/VoxeLibre
Fix accidental extra spaces
This commit is contained in:
parent
20f8e18098
commit
89f2c06af2
|
@ -75,7 +75,7 @@ local function composter_add_item(pos, node, player, itemstack, pointed_thing)
|
||||||
local chance = get_item_group(itemname, "compostability")
|
local chance = get_item_group(itemname, "compostability")
|
||||||
if chance > 0 then
|
if chance > 0 then
|
||||||
if not is_creative_enabled(player:get_player_name()) then
|
if not is_creative_enabled(player:get_player_name()) then
|
||||||
itemstack:take_item()
|
itemstack:take_item()
|
||||||
minetest.sound_play({name="default_gravel_dug", pos=above, gain=1}, true)
|
minetest.sound_play({name="default_gravel_dug", pos=above, gain=1}, true)
|
||||||
end
|
end
|
||||||
-- calculate leveling up chance
|
-- calculate leveling up chance
|
||||||
|
@ -92,10 +92,9 @@ local function composter_add_item(pos, node, player, itemstack, pointed_thing)
|
||||||
level = "ready"
|
level = "ready"
|
||||||
end
|
end
|
||||||
swap_node(pos, {name = "mcl_composters:composter_" .. level})
|
swap_node(pos, {name = "mcl_composters:composter_" .. level})
|
||||||
|
minetest.sound_play({name="default_grass_footstep", pos=above, gain=1}, true)
|
||||||
-- a full composter becomes ready for harvest after one second
|
-- a full composter becomes ready for harvest after one second
|
||||||
-- the block will get updated by the node timer callback set in node reg def
|
-- the block will get updated by the node timer callback set in node reg def
|
||||||
minetest.sound_play({name="default_grass_footstep", pos=above, gain=1}, true)
|
|
||||||
|
|
||||||
if level == 7 then
|
if level == 7 then
|
||||||
local timer = get_node_timer(pos)
|
local timer = get_node_timer(pos)
|
||||||
timer:start(1)
|
timer:start(1)
|
||||||
|
|
Loading…
Reference in New Issue