Changed update condition
This commit is contained in:
parent
02577d0039
commit
ca0268040a
|
@ -736,6 +736,13 @@ void UpdatePatchChildHylianShield() {
|
|||
|
||||
void RegisterPatchChildHylianShieldHandler() {
|
||||
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();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue