diff --git a/src/main.zig b/src/main.zig index c55e202..cfe5ef2 100644 --- a/src/main.zig +++ b/src/main.zig @@ -10,7 +10,7 @@ fn waitForCooldown(remaining_seconds: i64) void { } pub fn depositIfNeeded(api: *ArtifactsAPI, char: *ArtifactsAPI.Character) !void { - if (char.getItemCount() == char.inventory_max_items) return; + if (char.getItemCount() < char.inventory_max_items) return; { const move_result = try api.actionMove(char.name, 4, 1);