mirror of
https://github.com/minetest-mods/skinsdb.git
synced 2024-12-23 07:50:18 +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)
|
end)
|
||||||
|
|
||||||
if minetest.global_exists("player_api") then
|
if minetest.global_exists("player_api") then
|
||||||
-- Minetest-0.5 and above compatible
|
-- Minetest-5 and above compatible
|
||||||
player_api.register_model("skinsdb_3d_armor_character_0_5.b3d", {
|
player_api.register_model("skinsdb_3d_armor_character_5.b3d", {
|
||||||
animation_speed = 30,
|
animation_speed = 30,
|
||||||
textures = {
|
textures = {
|
||||||
"blank.png",
|
"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 playername = player:get_player_name()
|
||||||
local ver = self:get_meta("format") or "1.0"
|
local ver = self:get_meta("format") or "1.0"
|
||||||
if minetest.global_exists("player_api") then
|
if minetest.global_exists("player_api") then
|
||||||
-- Minetest-0.5 compatible
|
-- Minetest-5 compatible
|
||||||
player_api.set_model(player, "skinsdb_3d_armor_character_0_5.b3d")
|
player_api.set_model(player, "skinsdb_3d_armor_character_5.b3d")
|
||||||
else
|
else
|
||||||
-- Minetest-0.4 compatible
|
-- Minetest-0.4 compatible
|
||||||
default.player_set_model(player, "skinsdb_3d_armor_character.b3d")
|
default.player_set_model(player, "skinsdb_3d_armor_character.b3d")
|
||||||
@ -115,7 +115,7 @@ function skin_class:apply_skin_to_player(player)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if minetest.global_exists("player_api") then
|
if minetest.global_exists("player_api") then
|
||||||
-- Minetest-0.5 compatible
|
-- Minetest-5 compatible
|
||||||
player_api.set_textures(player, {
|
player_api.set_textures(player, {
|
||||||
v10_texture,
|
v10_texture,
|
||||||
v18_texture,
|
v18_texture,
|
||||||
|
Loading…
Reference in New Issue
Block a user