fix deprecated use of use_texture_alpha

This commit is contained in:
OgelGames 2021-04-04 22:45:36 +10:00
parent 33c15e1836
commit 740cecc67e
3 changed files with 6 additions and 2 deletions

View File

@ -11,6 +11,7 @@ travelnet.register_door = function( node_base_name, def_tiles, material )
drawtype = "nodebox",
-- top, bottom, side1, side2, inner, outer
tiles = def_tiles,
use_texture_alpha = "clip",
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = true,
@ -42,6 +43,7 @@ travelnet.register_door = function( node_base_name, def_tiles, material )
drawtype = "nodebox",
-- top, bottom, side1, side2, inner, outer
tiles = def_tiles,
use_texture_alpha = "clip",
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = true,

View File

@ -68,6 +68,7 @@ minetest.register_node("travelnet:hidden_top", {
drop = "",
groups = {not_in_creative_inventory = 1},
tiles = {"travelnet_blank.png"},
use_texture_alpha = "clip",
node_box = {
type = "fixed",
fixed = { -0.5, 0.45,-0.5,0.5, 0.5, 0.5},

View File

@ -45,6 +45,7 @@ function travelnet.register_travelnet_box(cfg)
"travelnet_bottom.png", -- view from bottom
},
use_texture_alpha = "clip",
inventory_image = "travelnet_inv_base.png^(travelnet_inv_colorable.png^[multiply:"..cfg.color..")",
groups = {
travelnet = 1
@ -56,7 +57,7 @@ function travelnet.register_travelnet_box(cfg)
meta:set_string("owner", placer:get_player_name());
local top_pos = {x=pos.x, y=pos.y+1, z=pos.z}
minetest.set_node(top_pos, {name="travelnet:hidden_top"})
end,
end,
on_receive_fields = travelnet.on_receive_fields,
on_punch = function(pos, node, puncher)
@ -73,7 +74,7 @@ function travelnet.register_travelnet_box(cfg)
travelnet.update_formspec(pos, puncher:get_player_name(), nil)
end,
can_dig = function( pos, player )
can_dig = function( pos, player )
return travelnet.can_dig( pos, player, 'travelnet box' )
end,