Skip to content

Commit 09be22c

Browse files
authored
Merge pull request #65 from altmp/dev
revert: server check doesn't have LocalPlayer
2 parents c06f331 + 6ad9db8 commit 09be22c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bindings/src/server/entities/Checkpoint.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,12 @@ mp.checkpoints.new = function(type, position, radius, params = {}) {
148148
};
149149

150150
alt.on('entityEnterColshape', (shape, ent) => {
151-
if (!ent.valid || (ent.type !== alt.BaseObjectType.Player && ent.type !== alt.BaseObjectType.LocalPlayer) || !shape || !(shape.mp instanceof _Checkpoint)) return;
151+
if (!ent.valid || ent.type !== alt.BaseObjectType.Player || !shape || !(shape.mp instanceof _Checkpoint)) return;
152152
mp.events.dispatchLocal('playerEnterCheckpoint', ent.mp, shape.mp);
153153
});
154154

155155
alt.on('entityLeaveColshape', (shape, ent) => {
156-
if (!ent.valid || (ent.type !== alt.BaseObjectType.Player && ent.type !== alt.BaseObjectType.LocalPlayer) || !shape || !(shape.mp instanceof _Checkpoint)) return;
156+
if (!ent.valid || ent.type !== alt.BaseObjectType.Player || !shape || !(shape.mp instanceof _Checkpoint)) return;
157157
mp.events.dispatchLocal('playerExitCheckpoint', ent.mp, shape.mp);
158158
});
159159

0 commit comments

Comments
 (0)