mirror of
https://codeberg.org/tenplus1/mobs_animal.git
synced 2024-12-22 17:00:26 +01:00
use get_properties in sheep.lua
This commit is contained in:
parent
1f4c8eb25a
commit
7d15829ef9
@ -223,8 +223,9 @@ for _, col in ipairs(all_colours) do
|
|||||||
self.base_texture = {textures}
|
self.base_texture = {textures}
|
||||||
|
|
||||||
local pos = self.object:get_pos()
|
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)
|
self.object:set_pos(pos)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user