Skip to content

Commit

Permalink
update name component usage
Browse files Browse the repository at this point in the history
  • Loading branch information
HexaField committed Jan 29, 2025
1 parent 1dca5aa commit 44680a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ItemCollectGame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const execute = () => {
const color = ValidItemColors[Math.floor(Math.random() * ValidItemColors.length)]

/** @todo hack to get a reference to the default scene platform object */
const platformEntity = NameComponent.entitiesByName['platform']?.[0]
const platformEntity = NameComponent.getEntitiesByName('platform')?.[0]
if (!platformEntity) return

const rootSceneEntity = getAncestorWithComponents(platformEntity, [SceneComponent])
Expand Down

0 comments on commit 44680a1

Please sign in to comment.