Skip to content

Commit

Permalink
Update src/Lib/Diagnostics/BehaviorPack/Block/components/diagnose.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Daan Verstraten <[email protected]>
  • Loading branch information
Xterionix and DaanV2 authored Nov 18, 2024
1 parent b34f713 commit 55a6073
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Lib/Diagnostics/BehaviorPack/Block/components/diagnose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ const component_test: Record<string, ComponentCheck> = {
},
"minecraft:placement_filter": (name, component, context, diagnoser) => {
for (const condition of component.conditions) {
condition.block_filter?.forEach((block: string | object) => {
if (typeof block == 'object' && 'name' in block) behaviorpack_check_blockid((block as { name: string }).name, diagnoser)
condition.block_filter?.forEach((block: string | { name: string }) => {
if (typeof block == 'object' && 'name' in block) behaviorpack_check_blockid(block.name, diagnoser)
else if (typeof block == 'string') behaviorpack_check_blockid(block, diagnoser);
});
}
Expand Down

0 comments on commit 55a6073

Please sign in to comment.