Minor tweaks

This commit is contained in:
kilbith 2015-05-23 15:14:47 +02:00
parent 493e74ab42
commit 5ffce841a6
4 changed files with 6 additions and 5 deletions

View File

@ -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),

View File

@ -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},

View File

@ -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
})

View File

@ -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", {