1
0
mirror of https://codeberg.org/tenplus1/mobs_animal.git synced 2024-12-22 08:50:26 +01:00

use get_properties in sheep.lua

This commit is contained in:
tenplus1 2023-10-05 13:46:54 +01:00
parent 1f4c8eb25a
commit 7d15829ef9

View File

@ -223,8 +223,9 @@ for _, col in ipairs(all_colours) do
self.base_texture = {textures}
local pos = self.object:get_pos()
local prop = self.object:get_properties()
pos.y = pos.y + (self.collisionbox[2] * -1) - 0.4
pos.y = pos.y + (prop.collisionbox[2] * -1) - 0.4
self.object:set_pos(pos)