summaryrefslogtreecommitdiff
path: root/npc/annuals/xmas/2021.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/annuals/xmas/2021.txt')
-rw-r--r--npc/annuals/xmas/2021.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/npc/annuals/xmas/2021.txt b/npc/annuals/xmas/2021.txt
index a21b31c5..aca3a4da 100644
--- a/npc/annuals/xmas/2021.txt
+++ b/npc/annuals/xmas/2021.txt
@@ -349,7 +349,12 @@ function script X21_SEEDS {
return;
if (.@y < 159 || .@y > 177)
return;
- addtimer 10, instance_npcname("#X21SeedFlag", @inst)+"::OnPlant";
+ // Instance bugfix
+ if (@inst <= 0) {
+ getitem XmasSeeds, 1;
+ return;
+ }
+ addtimer 10, instance_npcname("#X21SeedFlag", @inst-1)+"::OnPlant";
return;
}