mirror of
https://github.com/minetest-mods/skinsdb.git
synced 2024-11-18 07:50:23 +01:00
replaced mt-5 models to the right ones, renamed 0_5 to 5
This commit is contained in:
parent
165e917b5f
commit
10a3a80dfd
4
init.lua
4
init.lua
@ -67,8 +67,8 @@ minetest.register_on_leaveplayer(function(player)
|
||||
end)
|
||||
|
||||
if minetest.global_exists("player_api") then
|
||||
-- Minetest-0.5 and above compatible
|
||||
player_api.register_model("skinsdb_3d_armor_character_0_5.b3d", {
|
||||
-- Minetest-5 and above compatible
|
||||
player_api.register_model("skinsdb_3d_armor_character_5.b3d", {
|
||||
animation_speed = 30,
|
||||
textures = {
|
||||
"blank.png",
|
||||
|
Binary file not shown.
BIN
models/skinsdb_3d_armor_character_5.b3d
Normal file
BIN
models/skinsdb_3d_armor_character_5.b3d
Normal file
Binary file not shown.
Binary file not shown.
@ -74,8 +74,8 @@ function skin_class:apply_skin_to_player(player)
|
||||
local playername = player:get_player_name()
|
||||
local ver = self:get_meta("format") or "1.0"
|
||||
if minetest.global_exists("player_api") then
|
||||
-- Minetest-0.5 compatible
|
||||
player_api.set_model(player, "skinsdb_3d_armor_character_0_5.b3d")
|
||||
-- Minetest-5 compatible
|
||||
player_api.set_model(player, "skinsdb_3d_armor_character_5.b3d")
|
||||
else
|
||||
-- Minetest-0.4 compatible
|
||||
default.player_set_model(player, "skinsdb_3d_armor_character.b3d")
|
||||
@ -115,7 +115,7 @@ function skin_class:apply_skin_to_player(player)
|
||||
end
|
||||
|
||||
if minetest.global_exists("player_api") then
|
||||
-- Minetest-0.5 compatible
|
||||
-- Minetest-5 compatible
|
||||
player_api.set_textures(player, {
|
||||
v10_texture,
|
||||
v18_texture,
|
||||
|
Loading…
Reference in New Issue
Block a user