mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-01-06 00:27:31 +01:00
Undo conversions to use mcl_bows:arrow_entity and use arrow_item.."_entity" like master
This commit is contained in:
parent
538ab13473
commit
3ef6b4d09b
@ -40,7 +40,7 @@ function mcl_bows.shoot_arrow(arrow_item, pos, dir, yaw, shooter, power, damage,
|
|||||||
power = power or BOW_MAX_SPEED
|
power = power or BOW_MAX_SPEED
|
||||||
damage = damage or 3
|
damage = damage or 3
|
||||||
|
|
||||||
local obj = vl_projectile.create("mcl_bows:arrow_entity", {
|
local obj = vl_projectile.create(arrow_item.."_entity", {
|
||||||
pos = pos,
|
pos = pos,
|
||||||
dir = dir,
|
dir = dir,
|
||||||
velocity = power,
|
velocity = power,
|
||||||
|
@ -44,7 +44,7 @@ function mcl_bows_s.shoot_arrow_crossbow(arrow_item, pos, dir, yaw, shooter, pow
|
|||||||
power = power or BOW_MAX_SPEED
|
power = power or BOW_MAX_SPEED
|
||||||
damage = damage or 3
|
damage = damage or 3
|
||||||
|
|
||||||
local obj = vl_projectile.create("mcl_bows:arrow_entity", {
|
local obj = vl_projectile.create(arrow_item.."_entity", {
|
||||||
pos = pos,
|
pos = pos,
|
||||||
dir = dir,
|
dir = dir,
|
||||||
velocity = power,
|
velocity = power,
|
||||||
|
Loading…
Reference in New Issue
Block a user