Skip to content

Commit

Permalink
fix(core): dynamic pickup type check range
Browse files Browse the repository at this point in the history
  • Loading branch information
dockfries committed Jul 25, 2024
1 parent 3514695 commit fbd4460
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core/src/wrapper/streamer/pickup/entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ export class DynamicPickup {
} = this.sourceInfo;
const { type, modelId: modelId, x, y, z, extended } = this.sourceInfo;

if (type < 0 || type > 22)
return logger.error("[StreamerPickup]: Invalid pickup type");
if (type < 0) return logger.error("[StreamerPickup]: Invalid pickup type");

streamDistance ??= s.StreamerDistances.PICKUP_SD;
priority ??= 0;
Expand Down

0 comments on commit fbd4460

Please sign in to comment.