We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69d8bad commit 5f07e8dCopy full SHA for 5f07e8d
1 file changed
src/Client.ts
@@ -258,7 +258,7 @@ export default class Client {
258
this.inputs.mouse.y = util.constrain(mouseY, minY, maxY);
259
260
const player = camera.cameraData.values.player;
261
- if (!TankBody.isTank(player)) return;
+ if (!Entity.exists(player) || !TankBody.isTank(player)) return;
262
// No AI
263
if (this.inputs.isPossessing && this.accessLevel !== config.AccessLevel.FullAccess) return;
264
0 commit comments