Changed update condition

This commit is contained in:
Patrick12115 2024-02-25 21:43:35 -05:00
parent 02577d0039
commit ca0268040a

View File

@ -736,6 +736,13 @@ void UpdatePatchChildHylianShield() {
void RegisterPatchChildHylianShieldHandler() { void RegisterPatchChildHylianShieldHandler() {
GameInteractor::Instance->RegisterGameHook<GameInteractor::OnPlayerUpdate>([]() { GameInteractor::Instance->RegisterGameHook<GameInteractor::OnPlayerUpdate>([]() {
static uint16_t lastItemOnB = gSaveContext.equips.buttonItems[0];
if (lastItemOnB != gSaveContext.equips.buttonItems[0]) {
UpdatePatchChildHylianShield();
lastItemOnB = gSaveContext.equips.buttonItems[0];
}
});
GameInteractor::Instance->RegisterGameHook<GameInteractor::OnSceneInit>([](int32_t sceneNum) {
UpdatePatchChildHylianShield(); UpdatePatchChildHylianShield();
}); });
} }