diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-11-21 14:54:34 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-11-21 14:54:34 +0800 |
commit | 42755196a746aeb309f6b87c48f6b2e2fc0c68cf (patch) | |
tree | 01d65e172efb2177db6d3aff1bda336daab35b2d /features/cosmetics/cosmetic.js | |
parent | bde207af172805c3ab2801d12a426df16a79ff0c (diff) | |
download | SoopyV2-42755196a746aeb309f6b87c48f6b2e2fc0c68cf.tar.gz SoopyV2-42755196a746aeb309f6b87c48f6b2e2fc0c68cf.tar.bz2 SoopyV2-42755196a746aeb309f6b87c48f6b2e2fc0c68cf.zip |
Make cosmetics render on renderEntity instead of renderWorld
Diffstat (limited to 'features/cosmetics/cosmetic.js')
-rw-r--r-- | features/cosmetics/cosmetic.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/features/cosmetics/cosmetic.js b/features/cosmetics/cosmetic.js index 1627f2f..4cf989f 100644 --- a/features/cosmetics/cosmetic.js +++ b/features/cosmetics/cosmetic.js @@ -1,5 +1,7 @@ class Cosmetic{ constructor(player, parent, id){ + + if(player.getUUID().toString() === Player.getUUID().toString()) player = Player /** * @type {PlayerMP | Player} */ @@ -12,7 +14,7 @@ class Cosmetic{ this.settings = this.parent.getPlayerCosmeticSettings(this.player, id) } - onRender(){ + onRenderEntity(ticks, isInGui){ //override } |