
GriefPrevention3D
A fork of GriefPrevention that adds 3D subdivisions
Список изменений
GriefPrevention3D v18.1.10
Wiki: GriefPrevention3D Wiki
Fixes
Locale resolution no longer falls back to en_PT for English players
Fixed a bug where players with a standard English client locale (en_US, en_GB) could receive messages in Pirate Speak (en_PT) instead of plain English.
Root cause: The per-player locale resolver's prefix-matching fallback iterated over a HashMap and returned the first key sharing the same 2-letter language prefix. Since both en and en_PT start with en, players whose client locale didn't exactly match a loaded locale could non-deterministically receive pirate speak.
Fix: The prefix fallback now prefers the exact base locale code (en) over variants (en_PT). A variant is only used when no exact base match exists. English-speaking players will always get en, and en_PT is only selected when the player's client locale is explicitly en_PT.
DataStore.java:resolvePlayerLocale()prefix loop now tracks exact-base and variant matches separately, returning the exact base first.
