summaryrefslogtreecommitdiff
path: root/decorative_tubes.lua
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2021-03-24 19:47:25 +0100
committerSmallJoker <mk939@ymail.com>2021-03-24 19:47:30 +0100
commitd2954c52773faa86e3a414250b8a9f5acd04c787 (patch)
tree7228296a3181f45f9fc9756924d926b12ab3e477 /decorative_tubes.lua
parent9ad6e5d07a1600273153e561be832cfb3c5c5171 (diff)
downloadpipeworks-d2954c52773faa86e3a414250b8a9f5acd04c787.tar
pipeworks-d2954c52773faa86e3a414250b8a9f5acd04c787.tar.gz
pipeworks-d2954c52773faa86e3a414250b8a9f5acd04c787.tar.bz2
pipeworks-d2954c52773faa86e3a414250b8a9f5acd04c787.tar.xz
pipeworks-d2954c52773faa86e3a414250b8a9f5acd04c787.zip
Get rid of most 5.4.0 texture warnings
This commit also shortens the lua_tube.lua code a bit
Diffstat (limited to 'decorative_tubes.lua')
-rw-r--r--decorative_tubes.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/decorative_tubes.lua b/decorative_tubes.lua
index 883f0cc..1a4d386 100644
--- a/decorative_tubes.lua
+++ b/decorative_tubes.lua
@@ -45,6 +45,10 @@ local pane_box = {
{ -8/16, -8/16, -1/16, 8/16, 8/16, 1/16 } -- pane
}
}
+
+local texture_alpha_mode = minetest.features.use_texture_alpha_string_modes
+ and "clip" or true
+
minetest.register_node("pipeworks:steel_pane_embedded_tube", {
drawtype = "nodebox",
description = S("Airtight panel embedded tube"),
@@ -55,6 +59,7 @@ minetest.register_node("pipeworks:steel_pane_embedded_tube", {
"pipeworks_pane_embedded_tube_sides.png",
"pipeworks_pane_embedded_tube_ends.png", "pipeworks_pane_embedded_tube_ends.png",
},
+ use_texture_alpha = texture_alpha_mode,
node_box = pane_box,
selection_box = pane_box,
collision_box = pane_box,