Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
felixtsu committed Jun 19, 2022
1 parent 0cb099a commit 549d91b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/game/physics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ class ArcadePhysicsEngine extends PhysicsEngine {
const tileOverlapHandlers = game.currentScene().tileOverlapHandlers;
if (tileOverlapHandlers) {
tileOverlapHandlers
.filter(h => h.spriteKind == sprite.kind() && h.tileKind.equals(currentTileMap.getTileImage(tile)))
.filter(h => h.spriteKind == sprite.kind() && h.tileKind.equals(currentTileMap.getTileImage(tile.tileSet)))
.forEach(h => h.handler(sprite, tile));
}
}
Expand Down

0 comments on commit 549d91b

Please sign in to comment.