mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-10-31 15:45:06 -04:00
Changed update condition
This commit is contained in:
parent
02577d0039
commit
ca0268040a
@ -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();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user