forked from MineClone5/MineClone5
Quickfix a crash
This commit is contained in:
parent
7de4b56cf6
commit
a909819881
|
@ -28,12 +28,14 @@ mobs.shoot_projectile_handling = function(arrow_item, pos, dir, yaw, shooter, po
|
||||||
obj:set_acceleration({x=0, y=gravity, z=0})
|
obj:set_acceleration({x=0, y=gravity, z=0})
|
||||||
obj:set_yaw(yaw-math.pi/2)
|
obj:set_yaw(yaw-math.pi/2)
|
||||||
local le = obj:get_luaentity()
|
local le = obj:get_luaentity()
|
||||||
le._shooter = shooter
|
if le then
|
||||||
le._damage = damage
|
le._shooter = shooter
|
||||||
le._is_critical = is_critical
|
le._damage = damage
|
||||||
le._startpos = pos
|
le._is_critical = is_critical
|
||||||
le._knockback = knockback
|
le._startpos = pos
|
||||||
le._collectable = collectable
|
le._knockback = knockback
|
||||||
|
le._collectable = collectable
|
||||||
|
end
|
||||||
|
|
||||||
--play custom shoot sound
|
--play custom shoot sound
|
||||||
if shooter and shooter.shoot_sound then
|
if shooter and shooter.shoot_sound then
|
||||||
|
|
Loading…
Reference in New Issue