player_api: Set correct visual size for legacy player model
authorsfan5 <sfan5@live.de>
Sun, 6 Oct 2019 12:06:02 +0000 (14:06 +0200)
committersfan5 <sfan5@live.de>
Sun, 6 Oct 2019 12:06:02 +0000 (14:06 +0200)
mods/player_api/api.lua

index e309b08d6b07915d5c781c1176cc574ecc53d2e2..0afd679031501d885a22f5152d19dd74538cb450 100644 (file)
@@ -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,