Add setting for 2D player

master
CasimirKaPazi 2022-06-28 22:55:27 +02:00
parent 79200641e0
commit 10d68ee1d6
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ function player_api.set_model(player, model_name)
player_data.model = model_name
local model = models[model_name]
if model then
if model and not minetest.settings:get_bool("player2d") then
player:set_properties({
mesh = model_name,
textures = player_data.textures or model.textures,