aboutsummaryrefslogtreecommitdiff
path: root/features/cosmetics/cosmetic.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-21 14:54:34 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-21 14:54:34 +0800
commit42755196a746aeb309f6b87c48f6b2e2fc0c68cf (patch)
tree01d65e172efb2177db6d3aff1bda336daab35b2d /features/cosmetics/cosmetic.js
parentbde207af172805c3ab2801d12a426df16a79ff0c (diff)
downloadSoopyV2-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.js4
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
}