Skip to content

Commit

Permalink
Merge pull request #41 from rithik-b/dev/bugfixes
Browse files Browse the repository at this point in the history
Fixed Bombs not appearing in HMD with HMDOnly
  • Loading branch information
rithik-b authored Jan 6, 2022
2 parents bbadd6a + 1e0ea9c commit 6a9b815
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CustomNotes/Installers/CustomNotesGameInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<SiraPrefabContainer, SiraPrefabContainer.Pool>().WithId(Protocol.BombPool).WithInitialSize(10).FromComponentInNewPrefab(NotePrefabContainer(note.NoteBomb));
Container.RegisterRedecorator(new BombNoteRegistration(DecorateBombs, DECORATION_PRIORITY));
}

#endregion
Expand Down

0 comments on commit 6a9b815

Please sign in to comment.