maruohon / tweakeroo

A client-side Minecraft mod that adds various "tweaks" (= usually small-ish individual features)
GNU Lesser General Public License v3.0
463 stars 113 forks source link

1.20.4 TWEAK_GAMMA_OVERRIDE state de-sync fix #478

Closed sakura-ryoko closed 4 months ago

sakura-ryoko commented 5 months ago

basic hack to "fix" the de-synced state of TWEAK_GAMMA_OVERRIDE across play sessions.

The call under Callbacks#FeatureCallbackGamma constructor method may only work under certain circumstances.

sakura-ryoko commented 5 months ago

It's basically a thing where either: a) Do a hack like this to maintain it's state between world "loads" during onWorldLoadPost; or b) Force the feature toggle to OFF just like TWEAK_FREE_CAMERA during the onWorldLoadPre, so the player needs to simply turn it on every time they want to use the Tweak.

sakura-ryoko commented 5 months ago

Updated to set FeatureToggle to FALSE under Pre.