From 1e0ea9cb9dd0d57b091a572cd0125c31d4d22c54 Mon Sep 17 00:00:00 2001 From: PixelBoom Date: Thu, 6 Jan 2022 05:59:57 +0400 Subject: [PATCH] Fixed Bombs not appearing in HMD with HMDOnly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🥶 --- CustomNotes/Installers/CustomNotesGameInstaller.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CustomNotes/Installers/CustomNotesGameInstaller.cs b/CustomNotes/Installers/CustomNotesGameInstaller.cs index b5624dc..8f26d49 100644 --- a/CustomNotes/Installers/CustomNotesGameInstaller.cs +++ b/CustomNotes/Installers/CustomNotesGameInstaller.cs @@ -63,12 +63,13 @@ public override void InstallBindings() #region Bomb Setup + Container.RegisterRedecorator(new BombNoteRegistration(DecorateBombs, DECORATION_PRIORITY)); + if (note.NoteBomb != null) { MaterialSwapper.GetMaterials(); MaterialSwapper.ReplaceMaterialsForGameObject(note.NoteBomb); Container.BindMemoryPool().WithId(Protocol.BombPool).WithInitialSize(10).FromComponentInNewPrefab(NotePrefabContainer(note.NoteBomb)); - Container.RegisterRedecorator(new BombNoteRegistration(DecorateBombs, DECORATION_PRIORITY)); } #endregion