From c3e191d48971bf0c7a4dce0e1e9b0b62a1042560 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 9 Apr 2021 22:52:50 -0300 Subject: Dye code should burn in fire.... But this will hold for a few --- npc/functions/DyeConfig.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/npc/functions/DyeConfig.txt b/npc/functions/DyeConfig.txt index 8ab0aa1a..60ab1e75 100755 --- a/npc/functions/DyeConfig.txt +++ b/npc/functions/DyeConfig.txt @@ -22,7 +22,7 @@ OnInit: end; S_Array: - if(getitemlink($@DYE_items$[$@w]) == "Unknown Item") goto L_Fail; + if(getitemname($@DYE_items$[$@w]) == "null") goto L_Fail; $@c = 0; callsub S_Color; $@w = $@w + 1; @@ -34,7 +34,7 @@ L_Fail: mapexit; S_Color: - if(getitemlink($@DYE_colors$[$@c] + $@DYE_items$[$@w]) == "Unknown Item") goto L_Fail; + if(getitemname($@DYE_colors$[$@c] + $@DYE_items$[$@w]) == "null") goto L_Fail; $@c = $@c + 1; if($@c < getarraysize($@DYE_colors$)) goto S_Color; return; -- cgit v1.2.3-60-g2f50