summaryrefslogtreecommitdiff
path: root/npc/items/shovel.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/items/shovel.txt')
-rw-r--r--npc/items/shovel.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt
index b12d7e897..e56488cdd 100644
--- a/npc/items/shovel.txt
+++ b/npc/items/shovel.txt
@@ -167,6 +167,7 @@ function script shovel_scatter {
// If ID is invalid, there's not enough items, it is an Iron Shovel, it is bound = Cannot bury
// GMs bypass rarity check. (A trade restriction check would be better)
+ if (.@id < 1) close;
if (.@id < 1 || countitem(.@id) < 1 || .@id == IronShovel || checkbound(.@id) ||
(!is_gm() && !getiteminfo(.@id, ITEMINFO_MAXCHANCE))
) {