forked from mtcontrib/homedecor_modpack
		
	Minor tweaks
This commit is contained in:
		| @@ -224,7 +224,7 @@ local function step(pos, fields) | |||||||
| 		run = tick() | 		run = tick() | ||||||
| 	end | 	end | ||||||
|  |  | ||||||
| 	if t ~= nil then | 	if t then | ||||||
| 	local scr = { formsize, background,  | 	local scr = { formsize, background,  | ||||||
| 		t.boardstring, t.previewstring, | 		t.boardstring, t.previewstring, | ||||||
| 		draw_shape(t.cur, t.x, t.y, t.rot, boardx, boardy), | 		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 | 	if above == "air" and (not id or id == 0) then | ||||||
| 		id = minetest.add_particlespawner({ | 		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}, | 			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}, | 			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}, | 			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({ | minetest.register_abm({ | ||||||
| 	nodenames = "homedecor:telephone", | 	nodenames = "homedecor:telephone", | ||||||
| 	interval = 30, | 	interval = 30, | ||||||
| 	chance = 10, | 	chance = 15, | ||||||
| 	action = function(pos, node) | 	action = function(pos, node) | ||||||
| 		minetest.sound_play("homedecor_telephone_ringing", { | 		minetest.sound_play("homedecor_telephone_ringing", { | ||||||
| 		pos = pos, | 		pos = pos, | ||||||
| 		gain = 1.0, | 		gain = 1.0, | ||||||
| 		max_hear_distance = 10 | 		max_hear_distance = 5 | ||||||
| 	}) | 	}) | ||||||
| 	end | 	end | ||||||
| }) | }) | ||||||
|   | |||||||
| @@ -590,7 +590,8 @@ homedecor.register("beer_mug", { | |||||||
| 	groups = { snappy=3, oddly_breakable_by_hand=3 }, | 	groups = { snappy=3, oddly_breakable_by_hand=3 }, | ||||||
| 	walkable = false, | 	walkable = false, | ||||||
| 	sounds = default.node_sound_glass_defaults(), | 	sounds = default.node_sound_glass_defaults(), | ||||||
| 	selection_box = beer_cbox | 	selection_box = beer_cbox, | ||||||
|  | 	on_use = minetest.item_eat(2) | ||||||
| }) | }) | ||||||
|  |  | ||||||
| homedecor.register("tool_cabinet", { | homedecor.register("tool_cabinet", { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user