Skip to content

Commit

Permalink
Fixed Bombs not appearing in HMD with HMDOnly
Browse files Browse the repository at this point in the history
🥶
  • Loading branch information
rithik-b committed Jan 6, 2022
1 parent bbadd6a commit 1e0ea9c
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 1e0ea9c

Please # to comment.