MONKEY (integration): order tick_shelter before the lighting resolve set

It reads MonkeyFrame.wetness while update_fog_model writes MonkeyFrame; the
undeclared pair put the ambiguity count one over the 5,582 ceiling.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
pkuzic
2026-09-25 20:31:25 +01:00
co-authored by Claude Opus 5.5
parent b55e60e202
commit 9296229336
+8 -1
View File
@@ -531,7 +531,14 @@ pub(super) fn register(app: &mut App) {
app.init_resource::<ShelterGrid>()
.init_resource::<ShelterExtract>()
.add_plugins(ExtractResourcePlugin::<ShelterExtract>::default())
.add_systems(Update, tick_shelter.after(super::wetness::wetness_tick));
// MONKEY (integration): it reads MonkeyFrame.wetness, which the resolve set's fog model also
// writes; run it with wetness, before that set (an undeclared order otherwise).
.add_systems(
Update,
tick_shelter
.after(super::wetness::wetness_tick)
.before(crate::lighting::LightingResolveSet),
);
if let Some(render_app) = app.get_sub_app_mut(RenderApp) {
render_app.add_systems(
Render,