mirror of
				https://github.com/mt-mods/homedecor_modpack.git
				synced 2025-10-31 21:35:30 +01:00 
			
		
		
		
	Fix particlespawner removal when digging fancy fire
This commit is contained in:
		| @@ -104,8 +104,8 @@ local function start_fire_effects(pos, node, clicker, chimney) | |||||||
| 			minsize = 4, maxsize = 8, | 			minsize = 4, maxsize = 8, | ||||||
| 			texture = "smoke_particle.png", | 			texture = "smoke_particle.png", | ||||||
| 		}) | 		}) | ||||||
|  | 		this_spawner_meta:set_int("smoky", id) | ||||||
| 		if chimney == 1 then | 		if chimney == 1 then | ||||||
| 			this_spawner_meta:set_int("smoky", id) |  | ||||||
| 			this_spawner_meta:set_int("sound", 0) | 			this_spawner_meta:set_int("sound", 0) | ||||||
| 		else | 		else | ||||||
| 			s_handle = minetest.sound_play("fire_small", { | 			s_handle = minetest.sound_play("fire_small", { | ||||||
| @@ -113,6 +113,7 @@ local function start_fire_effects(pos, node, clicker, chimney) | |||||||
| 				max_hear_distance = 5, | 				max_hear_distance = 5, | ||||||
| 				loop = true | 				loop = true | ||||||
| 			}) | 			}) | ||||||
|  | 			fire_particles_off(pos) | ||||||
| 			fire_particles_on(pos) | 			fire_particles_on(pos) | ||||||
| 			this_spawner_meta:set_int("sound", s_handle) | 			this_spawner_meta:set_int("sound", s_handle) | ||||||
| 		end | 		end | ||||||
| @@ -161,6 +162,7 @@ minetest.register_node("fake_fire:ice_fire", { | |||||||
| 	end, | 	end, | ||||||
| 	on_destruct = function (pos) | 	on_destruct = function (pos) | ||||||
| 		stop_smoke(pos) | 		stop_smoke(pos) | ||||||
|  | 		fire_particles_off(pos) | ||||||
| 		minetest.sound_play("fire_extinguish", { | 		minetest.sound_play("fire_extinguish", { | ||||||
| 			pos = pos, max_hear_distance = 5 | 			pos = pos, max_hear_distance = 5 | ||||||
| 		}) | 		}) | ||||||
| @@ -199,6 +201,7 @@ minetest.register_node("fake_fire:fancy_fire", { | |||||||
| 		"fake_fire_empty_tile.png" | 		"fake_fire_empty_tile.png" | ||||||
| 	}, | 	}, | ||||||
| 	on_rightclick = function(pos, node, clicker, itemstack, pointed_thing) | 	on_rightclick = function(pos, node, clicker, itemstack, pointed_thing) | ||||||
|  | 		fire_particles_off(pos) | ||||||
| 		fire_particles_on(pos) | 		fire_particles_on(pos) | ||||||
| 		return itemstack | 		return itemstack | ||||||
| 	end, | 	end, | ||||||
| @@ -353,4 +356,3 @@ minetest.register_lbm({ | |||||||
| 		end | 		end | ||||||
| 	end | 	end | ||||||
| }) | }) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user