From 978bb9ddd02589f9e9f991c594290ee87343cf3c Mon Sep 17 00:00:00 2001 From: Emik Date: Tue, 24 Feb 2026 15:30:06 +0100 Subject: [PATCH] Fix crash --- src/joker.lua | 14 ++++---------- src/spectral.lua | 6 +++--- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/src/joker.lua b/src/joker.lua index e56fda2..76c1e91 100644 --- a/src/joker.lua +++ b/src/joker.lua @@ -16,19 +16,13 @@ local joker = (function() return function(tbl) tbl.pos = inc() tbl.atlas = "joker" + tbl.artist = tbl.artist and "Roland_" .. tbl.artist or nil tbl.soul_pos = tbl.soul_pos and inc() or nil tbl.sinis = tbl.sinis and inc() or nil - SMODS.Joker(tbl) + local joker = SMODS.Joker(tbl) - local _ = tbl.artist and q(function() - Bakery_API.contributors.Roland_char = Bakery_API.contributors.Roland_char or { - name = "char (@irregulester)", - fg = HEX "f8f8f2ff", - bg = HEX "ff79c6ff", - } - - tbl.artist = "Roland_" .. tbl.artist - Bakery_API.credit(tbl) + q(function() + Bakery_API.credit(joker) end) end end)() diff --git a/src/spectral.lua b/src/spectral.lua index 435581e..a6f67e1 100644 --- a/src/spectral.lua +++ b/src/spectral.lua @@ -12,12 +12,12 @@ local spectral = (function() tbl.set = "Spectral" tbl.atlas = "spectral" tbl.pos = {x = x, y = 0} + tbl.artist = tbl.artist and "Roland_" .. tbl.artist or nil local ret = SMODS.Consumable(tbl) x = x + 1 - local _ = tbl.artist and q(function() - tbl.artist = "Roland_" .. tbl.artist - Bakery_API.credit(tbl) + q(function() + Bakery_API.credit(ret) end) return ret