
64
0
Список изменений
Fixed
-
Storage retrieval GUI pagination broken on pages 2 and above - Fixed critical bug where navigation buttons became moveable objects after navigating past page 1
- Root cause: When opening a new page,
player.openInventory()automatically closes the previous inventory, triggeringonInventoryClosewhich removed the session fromactiveGUISessionsbefore the new page could use it - Fix: Added
isTransitioningflag toStorageGUISessionthat prevents the close handler from removing the session during page transitions - Navigation buttons now work correctly on all pages
- Close button and item retrieval work on all pages
- Root cause: When opening a new page,
-
Items on pages 2+ lost when closing GUI - Fixed critical bug where only items from the currently visible page were saved on close
- Root cause:
getRemainingItemsFromGUI()only read the 45 visible slots of the current page, ignoring items on other pages stored insession.items - Fix: Added
syncCurrentPageToSession()method that syncs GUI state back to session before page transitions and on close - All remaining items across all pages now persist correctly when GUI is closed
- Items consolidate automatically into fewer pages as items are taken
- Root cause:
Changed
-
StorageGUISession.kt
- Added
isTransitioning: Booleanproperty for page transition tracking - Added
originalItemCount: Intproperty for accurate "items taken" messaging
- Added
-
StorageManager.kt
- Added
syncCurrentPageToSession()method to sync GUI state back to session - Updated navigation handlers to sync current page before changing pages
- Updated
onInventoryClose()to sync and save all items from session - Removed local
ITEMS_PER_PAGEconstant, now usesStorageGUISession.ITEMS_PER_PAGEas single source of truth - Removed unused
getRemainingItemsFromGUI()method
- Added
Файлы
ZoneRental-3.1.1.jar(3.77 MiB)
ОсновнойМетаданные
Канал релиза
Alpha
Номер версии
3.1.1
Загрузчики
BukkitPaperPurpurSpigot
Версии игры
1.21–1.21.11
Загрузок
5
Дата публикации
31.12.2025
