mirror of
https://github.com/mt-mods/pipeworks.git
synced 2025-06-29 23:00:49 +02:00
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:
@ -1,6 +1,8 @@
|
||||
local S = minetest.get_translator("pipeworks")
|
||||
local new_flow_logic_register = pipeworks.flowables.register
|
||||
|
||||
local texture_alpha_mode = minetest.features.use_texture_alpha_string_modes
|
||||
|
||||
local polys = ""
|
||||
if pipeworks.enable_lowpoly then polys = "_lowpoly" end
|
||||
|
||||
@ -142,6 +144,7 @@ for s in ipairs(states) do
|
||||
drawtype = "mesh",
|
||||
mesh = "pipeworks_pump"..polys..".obj",
|
||||
tiles = { "pipeworks_pump_"..states[s]..".png" },
|
||||
use_texture_alpha = texture_alpha_mode and "clip" or true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = dgroups,
|
||||
@ -286,6 +289,7 @@ minetest.register_node("pipeworks:grating", {
|
||||
"pipeworks_grating_sides.png",
|
||||
"pipeworks_grating_sides.png"
|
||||
},
|
||||
use_texture_alpha = texture_alpha_mode and "clip" or true,
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -357,6 +361,7 @@ minetest.register_node(nodename_spigot_loaded, {
|
||||
},
|
||||
{ name = "pipeworks_spigot.png" }
|
||||
},
|
||||
use_texture_alpha = texture_alpha_mode and "blend" or true,
|
||||
sunlight_propagates = true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
|
Reference in New Issue
Block a user