Skip to content

Commit 1fcbf64

Browse files
authored
Replace 3d_armor_trans.png w/ engine provided blank.png (#143)
1 parent fb86c02 commit 1fcbf64

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

3d_armor/api.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ armor.set_player_armor = function(self, player)
373373
local state = 0
374374
local count = 0
375375
local preview = armor:get_preview(name)
376-
local texture = "3d_armor_trans.png"
376+
local texture = "blank.png"
377377
local physics = {}
378378
local attributes = {}
379379
local levels = {}

3d_armor/init.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@ local function init_player_armor(initplayer)
268268
local skin = armor:get_player_skin(name)
269269
armor.textures[name] = {
270270
skin = skin,
271-
armor = "3d_armor_trans.png",
272-
wielditem = "3d_armor_trans.png",
271+
armor = "blank.png",
272+
wielditem = "blank.png",
273273
preview = armor.default_skin.."_preview.png",
274274
}
275275
local texture_path = minetest.get_modpath("player_textures")
@@ -291,8 +291,8 @@ player_api.register_model("3d_armor_character.b3d", {
291291
animation_speed = 30,
292292
textures = {
293293
armor.default_skin..".png",
294-
"3d_armor_trans.png",
295-
"3d_armor_trans.png",
294+
"blank.png",
295+
"blank.png",
296296
},
297297
animations = {
298298
stand = {x=0, y=79},

3d_armor/textures/3d_armor_trans.png

-274 Bytes
Binary file not shown.

3d_armor_stand/init.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ local function update_entity(pos)
6262
object = minetest.add_entity(pos, "3d_armor_stand:armor_entity")
6363
end
6464
if object then
65-
local texture = "3d_armor_trans.png"
65+
local texture = "blank.png"
6666
local textures = {}
6767
local meta = minetest.get_meta(pos)
6868
local inv = meta:get_inventory()
@@ -146,7 +146,7 @@ minetest.register_node("3d_armor_stand:top", {
146146
groups = {not_in_creative_inventory = 1},
147147
is_ground_content = false,
148148
on_blast = function() end,
149-
tiles = {"3d_armor_trans.png"},
149+
tiles = {"blank.png"},
150150
})
151151

152152
minetest.register_node("3d_armor_stand:armor_stand", {
@@ -388,7 +388,7 @@ minetest.register_entity("3d_armor_stand:armor_entity", {
388388
mesh = "3d_armor_entity.obj",
389389
visual_size = {x=1, y=1},
390390
collisionbox = {0,0,0,0,0,0},
391-
textures = {"3d_armor_trans.png"},
391+
textures = {"blank.png"},
392392
},
393393
_pos = nil,
394394
on_activate = function(self)

wieldview/get_texture.lua

+5-5
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ local get_image_from_tile = memoize(function(tile)
9292
end
9393
end
9494

95-
return "3d_armor_trans.png"
95+
return "blank.png"
9696
end)
9797

9898
local function get_image_cube(tiles)
@@ -139,7 +139,7 @@ local function get_image_cube(tiles)
139139
)
140140
end
141141

142-
return "3d_armor_trans.png"
142+
return "blank.png"
143143
end
144144

145145
local function is_normal_node(drawtype)
@@ -158,7 +158,7 @@ armor.get_wield_image = memoize(function(item)
158158
item = ItemStack(item)
159159

160160
if item:is_empty() then
161-
return "3d_armor_trans.png"
161+
return "blank.png"
162162
end
163163

164164
local def = item:get_definition()
@@ -169,7 +169,7 @@ armor.get_wield_image = memoize(function(item)
169169
local meta = item:get_meta()
170170
local color = meta:get("color") or def.color
171171

172-
local image = "3d_armor_trans.png"
172+
local image = "blank.png"
173173

174174
if def.wield_image and def.wield_image ~= "" then
175175
local parts = {def.wield_image}
@@ -193,7 +193,7 @@ armor.get_wield_image = memoize(function(item)
193193

194194
elseif def.type == "node" then
195195
if def.drawtype == "nodebox" or def.drawtype == "mesh" then
196-
image = "3d_armor_trans.png"
196+
image = "blank.png"
197197

198198
else
199199
local tiles = def.tiles

wieldview/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dofile(minetest.get_modpath(minetest.get_current_modname()).."/get_texture.lua")
1414
dofile(minetest.get_modpath(minetest.get_current_modname()).."/transform.lua")
1515

1616
wieldview.get_item_texture = function(self, item)
17-
local texture = "3d_armor_trans.png"
17+
local texture = "blank.png"
1818
if item ~= "" then
1919
texture = armor.get_wield_image(item)
2020

0 commit comments

Comments
 (0)