Use player_api functions instead of default (#129)

This commit is contained in:
David Leal 2023-12-26 11:34:43 -06:00 committed by GitHub
parent e0b6112320
commit 467709c935
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -352,7 +352,7 @@ armor.update_player_visuals = function(self, player)
end end
local name = player:get_player_name() local name = player:get_player_name()
if self.textures[name] then if self.textures[name] then
default.player_set_textures(player, { player_api.set_textures(player, {
self.textures[name].skin, self.textures[name].skin,
self.textures[name].armor, self.textures[name].armor,
self.textures[name].wielditem, self.textures[name].wielditem,

View File

@ -322,7 +322,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
end) end)
minetest.register_on_joinplayer(function(player) minetest.register_on_joinplayer(function(player)
default.player_set_model(player, "3d_armor_character.b3d") player_api.set_model(player, "3d_armor_character.b3d")
init_player_armor(player) init_player_armor(player)
end) end)