~gpcf/misc-patches

Adding use_texture_alpha = "blend" to more pipeworks' tubes and grating so transparency is working in minetest 5.9. Include this patch with the previous patch. v1 PROPOSED

erstazi: 1
 Adding use_texture_alpha = "blend" to more pipeworks' tubes and grating so transparency is working in minetest 5.9. Include this patch with the previous patch.

 5 files changed, 12 insertions(+), 5 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~gpcf/misc-patches/patches/54673/mbox | git am -3
Learn more about email & git

[PATCH] Adding use_texture_alpha = "blend" to more pipeworks' tubes and grating so transparency is working in minetest 5.9. Include this patch with the previous patch. Export this patch

---
 decorative_tubes.lua  |  1 +
 devices.lua           | 11 ++++++-----
 lua_tube.lua          |  2 ++
 routing_tubes.lua     |  1 +
 tube_registration.lua |  2 ++
 5 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/decorative_tubes.lua b/decorative_tubes.lua
index 39ba8f3..fcb1e88 100644
--- a/decorative_tubes.lua
+++ b/decorative_tubes.lua
@@ -57,6 +57,7 @@ minetest.register_node("pipeworks:steel_pane_embedded_tube", {
	collision_box = pane_box,
	paramtype = "light",
	paramtype2 = "facedir",
	use_texture_alpha = "blend",
	groups = {cracky=1, oddly_breakable_by_hand = 1, tubedevice = 1},
	legacy_facedir_simple = true,
	sounds = default.node_sound_stone_defaults(),
diff --git a/devices.lua b/devices.lua
index 07cf6fe..54e08e2 100644
--- a/devices.lua
+++ b/devices.lua
@@ -19,7 +19,7 @@ end
function pipeworks.rotate_on_place(itemstack, placer, pointed_thing)

	local playername = placer:get_player_name()
	if not minetest.is_protected(pointed_thing.under, playername) 
	if not minetest.is_protected(pointed_thing.under, playername)
	   and not minetest.is_protected(pointed_thing.above, playername) then

		local node = minetest.get_node(pointed_thing.under)
@@ -288,6 +288,7 @@ minetest.register_node("pipeworks:grating", {
	},
	sunlight_propagates = true,
	paramtype = "light",
	use_texture_alpha = "blend",
	groups = {snappy=3, pipe=1},
	sounds = default.node_sound_wood_defaults(),
	walkable = true,
@@ -464,7 +465,7 @@ minetest.register_node(nodename_sensor_empty, {
	end,
	on_construct = function(pos)
		if mesecon then
			mesecon.receptor_off(pos, rules) 
			mesecon.receptor_off(pos, rules)
		end
	end,
	selection_box = {
@@ -503,7 +504,7 @@ minetest.register_node(nodename_sensor_loaded, {
	end,
	on_construct = function(pos)
		if mesecon then
			mesecon.receptor_on(pos, rules) 
			mesecon.receptor_on(pos, rules)
		end
	end,
	selection_box = {
@@ -625,7 +626,7 @@ minetest.register_node(nodename_fountain_empty, {
	end,
	on_construct = function(pos)
		if mesecon then
			mesecon.receptor_on(pos, rules) 
			mesecon.receptor_on(pos, rules)
		end
	end,
	selection_box = {
@@ -660,7 +661,7 @@ minetest.register_node(nodename_fountain_loaded, {
	end,
	on_construct = function(pos)
		if mesecon then
			mesecon.receptor_on(pos, rules) 
			mesecon.receptor_on(pos, rules)
		end
	end,
	selection_box = {
diff --git a/lua_tube.lua b/lua_tube.lua
index 8cc4468..e4dc695 100644
--- a/lua_tube.lua
+++ b/lua_tube.lua
@@ -700,6 +700,7 @@ for white  = 0, 1 do
		drawtype = "nodebox",
		tiles = tiles,
		paramtype = "light",
		use_texture_alpha = "blend",
		groups = groups,
		drop = BASENAME.."000000",
		sunlight_propagates = true,
@@ -813,6 +814,7 @@ minetest.register_node(BASENAME .. "_burnt", {
	tiles = tiles_burnt,
	is_burnt = true,
	paramtype = "light",
	use_texture_alpha = "blend",
	groups = {snappy = 3, tube = 1, tubedevice = 1, not_in_creative_inventory=1},
	drop = BASENAME.."000000",
	sunlight_propagates = true,
diff --git a/routing_tubes.lua b/routing_tubes.lua
index ba9e0aa..5643e2a 100644
--- a/routing_tubes.lua
+++ b/routing_tubes.lua
@@ -144,6 +144,7 @@ if pipeworks.enable_one_way_tube then
		paramtype2 = "facedir",
		drawtype = "nodebox",
		paramtype = "light",
		use_texture_alpha = "blend",
		node_box = {type = "fixed",
			fixed = {{-1/2, -9/64, -9/64, 1/2, 9/64, 9/64}}},
		groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, tubedevice = 1},
diff --git a/tube_registration.lua b/tube_registration.lua
index 48fa912..3e1e59a 100644
--- a/tube_registration.lua
+++ b/tube_registration.lua
@@ -86,6 +86,7 @@ local register_one_tube = function(name, tname, dropname, desc, plain, noctrs, e
		wield_image = iimg,
		wield_scale = wscale,
		paramtype = "light",
		use_texture_alpha = "blend",
		selection_box = {
			type = "fixed",
			fixed = outsel
@@ -192,6 +193,7 @@ local register_all_tubes = function(name, desc, plain, noctrs, ends, short, inv,
				inventory_image = inv,
				wield_image = inv,
				paramtype = "light",
				use_texture_alpha = "blend",
				sunlight_propagates = true,
				description = "Pneumatic tube segment (legacy)",
				after_place_node = pipeworks.after_place,
-- 
2.34.1