From a94026a24423fdd330a02c7b9887455137ab5f2f Mon Sep 17 00:00:00 2001 From: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> Date: Tue, 18 Jun 2024 23:10:08 +0200 Subject: Docs: Mention ConfigMigrator in Contrib Guide (#2118) Co-authored-by: Empa <42304516+ItsEmpa@users.noreply.github.com> --- CONTRIBUTING.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d4f548ddc..c0d399186 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -90,6 +90,7 @@ for more information and usages. - Please use Regex instead of String comparison when it is likely Hypixel will change the message in the future. - Do not use `fixedRateTimer` when possible and instead use `SecondPassedEvent` to safely execute the repeating event on the main thread. +- When updating a config option variable, use the `ConfigUpdaterMigrator.ConfigFixEvent` with event.move(), when moving a value, and event.transform() when updating a value. [For Example](https://github.com/hannibal002/SkyHanni/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/CustomScoreboard.kt#L241). ## Software Used in SkyHanni -- cgit