Skip to content

Commit

Permalink
Update genlite-nameplates.plugin.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dpeGit committed May 16, 2023
1 parent 2a38334 commit cf90d5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client/plugins/genlite-nameplates.plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -880,10 +880,10 @@ export class GenLiteNamePlatesPlugin extends GenLitePlugin {
if (!this.scaleDistance) {
var scaleVector = new document.game.THREE.Vector3();
var scale = scaleVector.subVectors(itemstack.worldPos, camera.position).length() * 0.005 * (this.scaleFactor);
this.NamePlates["Items"][uid].scale.set(scale, scale, scale);
this.NamePlates["Items"][uid].scale?.set(scale, scale, scale);
} else {
let scaledScaleFactor = this.scaleFactor * 0.05;
this.NamePlates["Items"][uid].scale.set(scaledScaleFactor, scaledScaleFactor, scaledScaleFactor);
this.NamePlates["Items"][uid].scale?.set(scaledScaleFactor, scaledScaleFactor, scaledScaleFactor);
}

// Update Position
Expand Down

0 comments on commit cf90d5b

Please sign in to comment.