summaryrefslogtreecommitdiff
path: root/mesecons_hydroturbine
diff options
context:
space:
mode:
authorDS <vorunbekannt75@web.de>2021-04-09 20:24:41 +0200
committerGitHub <noreply@github.com>2021-04-09 20:24:41 +0200
commit65793514fe614147c5141ae7797be402b5e6d25d (patch)
treeb1ddd5e7dcc0e7fdcebd0b103252762549dcf888 /mesecons_hydroturbine
parentf5c3f798be94cc95b93e5fe480f537dc41d6f350 (diff)
downloadmesecons-65793514fe614147c5141ae7797be402b5e6d25d.tar
mesecons-65793514fe614147c5141ae7797be402b5e6d25d.tar.gz
mesecons-65793514fe614147c5141ae7797be402b5e6d25d.tar.bz2
mesecons-65793514fe614147c5141ae7797be402b5e6d25d.tar.xz
mesecons-65793514fe614147c5141ae7797be402b5e6d25d.zip
Fix use_texture_alpha warnings (#563)
Diffstat (limited to 'mesecons_hydroturbine')
-rw-r--r--mesecons_hydroturbine/init.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesecons_hydroturbine/init.lua b/mesecons_hydroturbine/init.lua
index afa21e9..afc7434 100644
--- a/mesecons_hydroturbine/init.lua
+++ b/mesecons_hydroturbine/init.lua
@@ -12,6 +12,7 @@ minetest.register_node("mesecons_hydroturbine:hydro_turbine_off", {
"jeija_hydro_turbine_turbine_top_bottom_off.png",
"jeija_hydro_turbine_turbine_misc_off.png"
},
+ use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or nil,
inventory_image = "jeija_hydro_turbine_inv.png",
is_ground_content = false,
wield_scale = {x=0.75, y=0.75, z=0.75},
@@ -42,6 +43,7 @@ minetest.register_node("mesecons_hydroturbine:hydro_turbine_on", {
{ name = "jeija_hydro_turbine_turbine_misc_on.png",
animation = {type = "vertical_frames", aspect_w = 256, aspect_h = 32, length = 0.4} }
},
+ use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or nil,
inventory_image = "jeija_hydro_turbine_inv.png",
drop = "mesecons_hydroturbine:hydro_turbine_off 1",
groups = {dig_immediate=2,not_in_creative_inventory=1},