From b75a7809de10831b8c71b63fdc5b8cd4ebdd8835 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Tue, 23 Feb 2021 00:27:52 +0900 Subject: [PATCH] ledger job --- app/Library/Moons/MoonCalc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Library/Moons/MoonCalc.php b/app/Library/Moons/MoonCalc.php index 0a639bf3c..4aa33f436 100644 --- a/app/Library/Moons/MoonCalc.php +++ b/app/Library/Moons/MoonCalc.php @@ -244,14 +244,14 @@ class MoonCalc { //Strip the prefix from the ore name if it has one. //Then change the ore id if necessary $tempName = explode(' ', $oreName); - dd($tempName); + if(sizeof($tempName) == 1) { $finalName = $tempName[0]; } else { $finalName = $tempName[sizeof($tempName) - 1]; $oreId = $lookupHelper->ItemNameToId($finalName); } - + dd($oreId); //Get the item composition for the ore $composition = ItemComposition::where('ItemId', $oreId)->first();