From 01bc4cd14d629dde9daf00de28e39d42c99ab919 Mon Sep 17 00:00:00 2001 From: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com> Date: Sun, 6 Sep 2026 01:07:19 +0100 Subject: [PATCH] Added constant for total page count --- exp_legacy/module/modules/data/quickbar.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exp_legacy/module/modules/data/quickbar.lua b/exp_legacy/module/modules/data/quickbar.lua index 761168dd..0db8e846 100644 --- a/exp_legacy/module/modules/data/quickbar.lua +++ b/exp_legacy/module/modules/data/quickbar.lua @@ -21,6 +21,7 @@ PlayerFilters:set_metadata{ } --- Filters are stored by a single index across the ten pages of ten slots +local total_page_count = 10 local slots_per_page = 10 --- Loads your quickbar preset @@ -43,7 +44,7 @@ Commands.new("save-quickbar", "Saves your Quickbar preset items to file") :register(function(player) local filters = {} - for page = 1, slots_per_page do + for page = 1, total_page_count do for slot = 1, slots_per_page do -- Records, remotes and specific item instances hold data which can not be saved by name local quick_bar_slot = player.get_quick_bar_slot(page, slot)