Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Commit

Permalink
fix: add layer check to gore kills
Browse files Browse the repository at this point in the history
  • Loading branch information
leia-uwu committed Oct 6, 2024
1 parent 52dfed9 commit 02ced8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/game/objects/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2278,6 +2278,7 @@ export class Player extends BaseGameObject {
if (
obj.__type === ObjectType.Building &&
obj.goreRegion &&
util.sameLayer(this.layer, obj.layer) &&
coldet.testCircleAabb(
this.pos,
this.rad,
Expand Down

0 comments on commit 02ced8b

Please sign in to comment.