diff --git a/computer/tetris.lua b/computer/tetris.lua index e985e0e6..32a02393 100644 --- a/computer/tetris.lua +++ b/computer/tetris.lua @@ -224,7 +224,7 @@ local function step(pos, fields) run = tick() end - if t ~= nil then + if t then local scr = { formsize, background, t.boardstring, t.previewstring, draw_shape(t.cur, t.x, t.y, t.rot, boardx, boardy), diff --git a/fake_fire/init.lua b/fake_fire/init.lua index b336e565..08760de3 100644 --- a/fake_fire/init.lua +++ b/fake_fire/init.lua @@ -20,7 +20,7 @@ local function start_smoke(pos, node, clicker, chimney) if above == "air" and (not id or id == 0) then id = minetest.add_particlespawner({ - amount = 4, time = 0, collisiondetection = false, + amount = 4, time = 0, collisiondetection = true, minpos = {x=pos.x-0.25, y=pos.y+0.4, z=pos.z-0.25}, maxpos = {x=pos.x+0.25, y=pos.y+5, z=pos.z+0.25}, minvel = {x=-0.2, y=0.3, z=-0.2}, maxvel = {x=0.2, y=1, z=0.2}, diff --git a/homedecor/electronics.lua b/homedecor/electronics.lua index d7b35b47..3e7abbbf 100644 --- a/homedecor/electronics.lua +++ b/homedecor/electronics.lua @@ -145,12 +145,12 @@ homedecor.register("telephone", { minetest.register_abm({ nodenames = "homedecor:telephone", interval = 30, - chance = 10, + chance = 15, action = function(pos, node) minetest.sound_play("homedecor_telephone_ringing", { pos = pos, gain = 1.0, - max_hear_distance = 10 + max_hear_distance = 5 }) end }) diff --git a/homedecor/misc-nodes.lua b/homedecor/misc-nodes.lua index d2271789..86957584 100644 --- a/homedecor/misc-nodes.lua +++ b/homedecor/misc-nodes.lua @@ -590,7 +590,8 @@ homedecor.register("beer_mug", { groups = { snappy=3, oddly_breakable_by_hand=3 }, walkable = false, sounds = default.node_sound_glass_defaults(), - selection_box = beer_cbox + selection_box = beer_cbox, + on_use = minetest.item_eat(2) }) homedecor.register("tool_cabinet", {