projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c413ed
)
player_api: Set correct visual size for legacy player model
author
sfan5
<sfan5@live.de>
Sun, 6 Oct 2019 12:06:02 +0000
(14:06 +0200)
committer
sfan5
<sfan5@live.de>
Sun, 6 Oct 2019 12:06:02 +0000
(14:06 +0200)
mods/player_api/api.lua
patch
|
blob
|
history
diff --git
a/mods/player_api/api.lua
b/mods/player_api/api.lua
index e309b08d6b07915d5c781c1176cc574ecc53d2e2..0afd679031501d885a22f5152d19dd74538cb450 100644
(file)
--- a/
mods/player_api/api.lua
+++ b/
mods/player_api/api.lua
@@
-54,6
+54,7
@@
function player_api.set_model(player, model_name)
player:set_properties({
textures = {"player.png", "player_back.png"},
visual = "upright_sprite",
+ visual_size = {x = 1, y = 2},
collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.75, 0.3},
stepheight = 0.6,
eye_height = 1.625,