Merge pull request #720 from Reasonlesss/teams-fix

Always unregister extended name
This commit is contained in:
libraryaddict 2023-07-06 10:06:45 +12:00 committed by GitHub
commit f310d10e79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -723,8 +723,8 @@ public class PlayerDisguise extends TargetedDisguise {
}
@Override
public boolean removeDisguise(boolean disguiseBeingReplaced) {
boolean result = super.removeDisguise(disguiseBeingReplaced);
public boolean removeDisguise(CommandSender sender, boolean disguiseBeingReplaced) {
boolean result = super.removeDisguise(sender, disguiseBeingReplaced);
if (!result) {
return result;