mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Remove some unnecessary skin checks
This commit is contained in:
parent
2ae34b69af
commit
eb7d71017c
2 changed files with 22 additions and 28 deletions
|
@ -112,9 +112,7 @@ public class FakeHeadProvider {
|
|||
try {
|
||||
SkinProvider.SkinData mergedSkinData = MERGED_SKINS_LOADING_CACHE.get(new FakeHeadEntry(texturesProperty, fakeHeadSkinUrl, entity));
|
||||
|
||||
if (session.getUpstream().isInitialized()) {
|
||||
sendSkinPacket(session, entity, mergedSkinData);
|
||||
}
|
||||
} catch (ExecutionException e) {
|
||||
GeyserImpl.getInstance().getLogger().error("Couldn't merge skin of " + entity.getUsername() + " with head skin url " + fakeHeadSkinUrl, e);
|
||||
}
|
||||
|
@ -136,9 +134,7 @@ public class FakeHeadProvider {
|
|||
return;
|
||||
}
|
||||
|
||||
if (session.getUpstream().isInitialized()) {
|
||||
sendSkinPacket(session, entity, skinData);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -133,7 +133,6 @@ public class SkinManager {
|
|||
SkinProvider.Cape cape = skinData.cape();
|
||||
SkinProvider.SkinGeometry geometry = skinData.geometry();
|
||||
|
||||
if (session.getUpstream().isInitialized()) {
|
||||
PlayerListPacket.Entry updatedEntry = buildEntryManually(
|
||||
session,
|
||||
entity.getUuid(),
|
||||
|
@ -159,7 +158,6 @@ public class SkinManager {
|
|||
session.sendUpstreamPacket(playerRemovePacket);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (skinAndCapeConsumer != null) {
|
||||
skinAndCapeConsumer.accept(new SkinProvider.SkinAndCape(skinData.skin(), skinData.cape()));
|
||||
|
|
Loading…
Reference in a new issue