forked from LizzyFleckenstein03/Memeclone
Fix all invalid usages of math.random in mcl_bows
This commit is contained in:
parent
2d1ac1c7fa
commit
9a4d26c2ae
|
@ -298,8 +298,8 @@ ARROW_ENTITY.on_step = function(self, dtime)
|
||||||
else
|
else
|
||||||
self._attach_parent = 'Body'
|
self._attach_parent = 'Body'
|
||||||
end
|
end
|
||||||
self._z_rotation = math.random(30, -30)
|
self._z_rotation = math.random(-30, 30)
|
||||||
self._y_rotation = math.random(30, -30)
|
self._y_rotation = math.random( -30, 30)
|
||||||
self.object:set_attach(obj, self._attach_parent, {x=self._x_position,y=self._y_position,z=random_arrow_positions('z', placement)}, {x=0,y=self._rotation_station + self._y_rotation,z=self._z_rotation})
|
self.object:set_attach(obj, self._attach_parent, {x=self._x_position,y=self._y_position,z=random_arrow_positions('z', placement)}, {x=0,y=self._rotation_station + self._y_rotation,z=self._z_rotation})
|
||||||
minetest.after(150, function()
|
minetest.after(150, function()
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
|
|
Loading…
Reference in New Issue