only add player model preview if 5.4+ detected
This commit is contained in:
parent
37b7a1f748
commit
ad5850c60f
4
init.lua
4
init.lua
@ -97,6 +97,8 @@ if data and data ~= "" then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- check for minetest 5.4 compatibility
|
||||||
|
local is_54 = minetest.has_feature("direct_velocity_on_players")
|
||||||
|
|
||||||
-- create formspec for skin selection page
|
-- create formspec for skin selection page
|
||||||
skins.formspec.main = function(name)
|
skins.formspec.main = function(name)
|
||||||
@ -139,7 +141,7 @@ skins.formspec.main = function(name)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- if preview enabled then add player model to formspec (5.4dev only)
|
-- if preview enabled then add player model to formspec (5.4dev only)
|
||||||
if skins.preview == true then
|
if skins.preview == true and is_54 then
|
||||||
|
|
||||||
formspec = formspec .. "model[6,-0.2;1.5,3;player;character.b3d;"
|
formspec = formspec .. "model[6,-0.2;1.5,3;player;character.b3d;"
|
||||||
.. skins.skins[name] .. ".png;0,180;false;true]"
|
.. skins.skins[name] .. ".png;0,180;false;true]"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user