mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-22 16:10:18 +01:00
Minor tweaks
This commit is contained in:
parent
493e74ab42
commit
5ffce841a6
@ -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),
|
||||
|
@ -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},
|
||||
|
@ -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
|
||||
})
|
||||
|
@ -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", {
|
||||
|
Loading…
Reference in New Issue
Block a user