forked from mtcontrib/pipeworks
fix remaining use_texture_alpha
warnings
extension of d2954c52
, using the same compatibility check for now, though it would be good to bump the minimum minetest version to 5.4 at some point
fixes #11
This commit is contained in:
@ -163,11 +163,15 @@ if pipeworks.enable_crossing_tube then
|
||||
})
|
||||
end
|
||||
|
||||
local texture_alpha_mode = minetest.features.use_texture_alpha_string_modes
|
||||
and "clip" or true
|
||||
|
||||
if pipeworks.enable_one_way_tube then
|
||||
minetest.register_node("pipeworks:one_way_tube", {
|
||||
description = S("One way tube"),
|
||||
tiles = {"pipeworks_one_way_tube_top.png", "pipeworks_one_way_tube_top.png", "pipeworks_one_way_tube_output.png",
|
||||
"pipeworks_one_way_tube_input.png", "pipeworks_one_way_tube_side.png", "pipeworks_one_way_tube_top.png"},
|
||||
use_texture_alpha = texture_alpha_mode,
|
||||
paramtype2 = "facedir",
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
|
Reference in New Issue
Block a user