From 1463475da0d205c5f635d9e428fe16ef3129b442 Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Sun, 6 Dec 2020 11:32:33 +0100 Subject: [PATCH] Explain property classes --- mods/player_api/api.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mods/player_api/api.lua b/mods/player_api/api.lua index 6d3bcb4a..ae4ec319 100644 --- a/mods/player_api/api.lua +++ b/mods/player_api/api.lua @@ -27,6 +27,8 @@ function player_api.register_model(name, def) def.collisionbox = def.collisionbox or {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3} def.stepheight = def.stepheight or 0.6 def.eye_height = def.eye_height or 1.47 + -- Sort animations into property classes: + -- Animations with same properties have the same _equals value for animation_name, animation in pairs(def.animations) do animation.eye_height = animation.eye_height or def.eye_height animation.collisionbox = animation.collisionbox or def.collisionbox