weather2patch-1.1.1-neoforge-1.21.jar
Curse Maven Snippet
What's new
# Changelog ## [1.1.1] ### Changed - Replaced `synchronized(this)` snapshot with a retry loop -- `synchronized` was ineffective because Weather2 writes to `CompoundTag` without holding any lock, meaning the CME could still occur during the copy itself - Switched snapshot collection from `new HashMap<>(tags)` to `new ArrayList<>(tags.entrySet())` to avoid redundant map construction overhead - Added retry cap (`MAX_RETRIES = 100`) -- if exceeded, writes an empty tag and logs a warning instead of looping indefinitely - Switched logger from `java.util.logging` to Log4j2 (`LogManager`) for proper NeoForge console output ### Added - Console log on first patch activation: `[weather2patch] CompoundTag thread-safety patch is active.` - Console warning if retry cap is exceeded: `[weather2patch] CompoundTag.write() hit MAX_RETRIES`
This mod has no additional files

