Fix player disguises
This commit is contained in:
parent
a36a511a30
commit
d3f6b6e68c
@ -101,7 +101,7 @@ KeepDisguises:
|
|||||||
EntityDespawn: false
|
EntityDespawn: false
|
||||||
PlayerDeath: false
|
PlayerDeath: false
|
||||||
PlayerLogout: false
|
PlayerLogout: false
|
||||||
|
|
||||||
# This controls if a entitys max health is determined by the entity, or by the disguise.
|
# This controls if a entitys max health is determined by the entity, or by the disguise.
|
||||||
# Wither is 200, a player is 20. With this enabled, a player disguised as a wither will have the boss bar health accurate to the players health.
|
# Wither is 200, a player is 20. With this enabled, a player disguised as a wither will have the boss bar health accurate to the players health.
|
||||||
# Else it will be 1/20 of the boss bar when he is full health.
|
# Else it will be 1/20 of the boss bar when he is full health.
|
||||||
|
@ -237,10 +237,7 @@ public class PlayerDisguise extends TargetedDisguise {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean startDisguise() {
|
public boolean startDisguise() {
|
||||||
if (isDisguiseInUse() || skinToUse == null)
|
if (!isDisguiseInUse() && skinToUse != null && gameProfile == null) {
|
||||||
return super.startDisguise();
|
|
||||||
|
|
||||||
if (getGameProfile() == null) {
|
|
||||||
currentLookup = new LibsProfileLookup() {
|
currentLookup = new LibsProfileLookup() {
|
||||||
@Override
|
@Override
|
||||||
public void onLookup(WrappedGameProfile gameProfile) {
|
public void onLookup(WrappedGameProfile gameProfile) {
|
||||||
|
Loading…
Reference in New Issue
Block a user