Skip to content

Commit f21dc01

Browse files
fix Memory Tag for Next Ante Preview 3.0.0
1 parent 2484eaf commit f21dc01

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Cryptid.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"Steamodded (>=1.0.0~BETA-0314c)"
1616
],
1717
"conflicts": [
18-
"Saturn"
18+
"Saturn",
19+
"AntePreview (>= 2.0.0~0c16a) (<<3.0.0)"
1920
]
2021
}

items/tag.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -443,20 +443,20 @@ local memory = {
443443
or localize("k_none")
444444
return { vars = { self.config.num, loc_tag } }
445445
end,
446-
preview_ui = function(self)
446+
preview_ui = function(self, tag)
447447
if G.GAME.cry_last_tag_used then
448-
local tag = Tag(G.GAME.cry_last_tag_used, true)
449-
tag.ability.orbital_hand = G.GAME.cry_memory_orbital
448+
local last_tag = Tag(G.GAME.cry_last_tag_used, true)
449+
last_tag.ability.orbital_hand = G.GAME.cry_memory_orbital
450450
local tag_sprite
451-
_, tag_sprite = tag:generate_UI(0.4)
451+
_, tag_sprite = last_tag:generate_UI(0.4)
452452
return {
453453
n = G.UIT.C,
454454
nodes = { {
455455
n = G.UIT.R,
456456
nodes = {
457457
{ n = G.UIT.T, config = { text = ">", colour = G.C.WHITE, scale = 0.4 } },
458458
{ n = G.UIT.O, config = { object = tag_sprite } },
459-
G.P_TAGS[G.GAME.cry_last_tag_used].preview_ui and G.P_TAGS[G.GAME.cry_last_tag_used].preview_ui(tag)
459+
G.P_TAGS[G.GAME.cry_last_tag_used].preview_ui and G.P_TAGS[G.GAME.cry_last_tag_used]:preview_ui(last_tag)
460460
}
461461
} }
462462
}

0 commit comments

Comments
 (0)