forked from MineClone5/MineClone5
Check object in mcl_throwing
This commit is contained in:
parent
a887708fb5
commit
96bc98e716
|
@ -139,6 +139,7 @@ local function egg_on_step(self, dtime)
|
||||||
|
|
||||||
-- Turn given object into a child
|
-- Turn given object into a child
|
||||||
local function make_child(object)
|
local function make_child(object)
|
||||||
|
if not object then return end
|
||||||
local ent = object:get_luaentity()
|
local ent = object:get_luaentity()
|
||||||
object:set_properties({
|
object:set_properties({
|
||||||
visual_size = { x = ent.base_size.x/2, y = ent.base_size.y/2 },
|
visual_size = { x = ent.base_size.x/2, y = ent.base_size.y/2 },
|
||||||
|
|
Loading…
Reference in New Issue