From 8d570958d40d3cc87c36117734e1b09a470cac0a Mon Sep 17 00:00:00 2001 From: teknomunk Date: Sun, 15 Sep 2024 19:27:18 -0500 Subject: [PATCH] Undo conversions to use mcl_bows:arrow_entity and use arrow_item.."_entity" like master --- mods/ITEMS/mcl_bows/bow.lua | 2 +- mods/ITEMS/mcl_bows/crossbow.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_bows/bow.lua b/mods/ITEMS/mcl_bows/bow.lua index 1ac25e5ae..c295dff0e 100644 --- a/mods/ITEMS/mcl_bows/bow.lua +++ b/mods/ITEMS/mcl_bows/bow.lua @@ -40,7 +40,7 @@ function mcl_bows.shoot_arrow(arrow_item, pos, dir, yaw, shooter, power, damage, power = power or BOW_MAX_SPEED damage = damage or 3 - local obj = vl_projectile.create("mcl_bows:arrow_entity", { + local obj = vl_projectile.create(arrow_item.."_entity", { pos = pos, dir = dir, velocity = power, diff --git a/mods/ITEMS/mcl_bows/crossbow.lua b/mods/ITEMS/mcl_bows/crossbow.lua index 8accbec4f..404a57898 100644 --- a/mods/ITEMS/mcl_bows/crossbow.lua +++ b/mods/ITEMS/mcl_bows/crossbow.lua @@ -44,7 +44,7 @@ function mcl_bows_s.shoot_arrow_crossbow(arrow_item, pos, dir, yaw, shooter, pow power = power or BOW_MAX_SPEED damage = damage or 3 - local obj = vl_projectile.create("mcl_bows:arrow_entity", { + local obj = vl_projectile.create(arrow_item.."_entity", { pos = pos, dir = dir, velocity = power,