fixed hat still visible when invisible
This commit is contained in:
@@ -30,7 +30,7 @@ public class HatFeatureRenderer extends FeatureRenderer<PlayerEntityRenderState,
|
|||||||
PlayerEntityRenderState state, float limbAngle, float limbDistance) {
|
PlayerEntityRenderState state, float limbAngle, float limbDistance) {
|
||||||
ItemStack headItem = state.equippedHeadStack;
|
ItemStack headItem = state.equippedHeadStack;
|
||||||
String uuid = Auth.playerNames.get(state.name);
|
String uuid = Auth.playerNames.get(state.name);
|
||||||
if (headItem.isEmpty() && uuid != null) {
|
if (headItem.isEmpty() && uuid != null && !state.invisible) {
|
||||||
SaturnPlayer player = Auth.players.get(uuid);
|
SaturnPlayer player = Auth.players.get(uuid);
|
||||||
if (player == null || player.hat == null || player.hat.isEmpty()) {
|
if (player == null || player.hat == null || player.hat.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user