
4.4K
6
Список изменений
Highlights
- Major stability refactor of registrations (blocks/items/entities/etc.)
- Fixed Forge registry synchronization crash on startup (duplicate registrations)
- Improved database (MySQL) safety and reliability
- Better Discord bot initialization and error reporting
- General code cleanup, package reorganization, and consistency
Fixes
- Resolved Forge registry sync error:
“One or more entry values did not copy to the correct id”- Root cause: duplicate block/item registration paths (legacy + new).
Now registered exactly once via a centralized manager
- Root cause: duplicate block/item registration paths (legacy + new).
- Fixed several missing imports and inconsistent package declarations (notably Discord classes)
- Corrected commented-out class causing references to fail (CommandHudc), restoring its package and availability
- Removed sources of NPEs during registration by adding null-checks and consistent ordering
- Prevented duplicate
ItemBlockregistration for blocks like atm
Improvements
Centralized registration system
- All block/item registrations routed through a single manager for consistency and crash prevention
- Clean separation of model registration (client-only) from core registration
Economy (EcoGlobal) hardening
- Replaced string-concatenated SQL with prepared statements (prevents SQL injection)
- Proper
try-with-resourcesfor connections/statements/result sets (prevents resource leaks) - Added logging and safer error handling; returns are predictable on failure
Database bootstrap (MySQLCreate)
- Safer table creation/update with structured checks for missing columns
- Robust error logging and clearer flow;
autoReconnectandSSLflags handled in connection URL
Discord integration (DiscordBotStart)
- Better initialization flow with clear logging
- Graceful handling of missing/invalid tokens and interruptions
Main mod class
- Safer registration flows: skip nulls and already-registered entries to avoid duplicates
- Clearer, more defensive logic for legacy item list handling
Compatibility
- No breaking changes to gameplay or data formats are intended
- Existing worlds/configs should load as before
- MySQL features remain optional; if disabled, economy gracefully returns default values
Файлы
Minewache-Roleplay-Mod-V5.jar(13.95 MiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
V5
Загрузчики
Forge
Версии игры
1.12.2
Загрузок
62
Дата публикации
8 мес. назад

