feat: actually reset
This commit is contained in:
parent
61132a2c88
commit
4f13d3fc2d
1 changed files with 3 additions and 7 deletions
|
@ -115,22 +115,18 @@ public class AppearanceManager {
|
|||
properties.get("textures").clear();
|
||||
properties.put("textures", new WrappedSignedProperty("textures", skinResult.value(), skinResult.signature()));
|
||||
} else {
|
||||
profile.setSkin(null);
|
||||
dataStore.updateCache(player.getUniqueId(), profile);
|
||||
reset();
|
||||
return ActionResult.error(I18NDict.Error.MOJANG_SKIN);
|
||||
}
|
||||
} else {
|
||||
profile.setName(null);
|
||||
dataStore.updateCache(player.getUniqueId(), profile);
|
||||
reset();
|
||||
return ActionResult.error(I18NDict.Error.MOJANG_NAME);
|
||||
}
|
||||
return ActionResult.ok();
|
||||
} catch (ExecutionException e) {
|
||||
return ActionResult.error(I18NDict.Error.CACHE);
|
||||
} catch (IOException e) {
|
||||
profile.setName(null);
|
||||
profile.setSkin(null);
|
||||
dataStore.updateCache(player.getUniqueId(), profile);
|
||||
reset();
|
||||
return ActionResult.error(I18NDict.Error.MOJANG_NAME);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue