Skip to content

Commit

Permalink
Fix build and a deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed May 9, 2024
1 parent cbd2aca commit 70fa514
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -50,6 +50,10 @@
//#endif
//#endif

//#if MC < 1.19.4
//$$ import java.util.Objects;
//#endif

public class OnlineFriendsScreen extends WorldHostScreen implements FriendsListUpdate {
private static final ResourceLocation GUI_ICONS_LOCATION = new ResourceLocation("textures/gui/icons.png");
//#if MC >= 1.20.2
Expand Down
Expand Up @@ -115,7 +115,7 @@ public void handle(ProtocolClient client) {
record ClosedWorld(UUID user) implements WorldHostS2CMessage {
@Override
public void handle(ProtocolClient client) {
WorldHost.ONLINE_FRIENDS.remove(user);
WorldHost.ONLINE_FRIENDS.removeLong(user);
WorldHost.ONLINE_FRIEND_PINGS.remove(user);
WorldHost.ONLINE_FRIEND_UPDATES.forEach(FriendsListUpdate::friendsListUpdate);
}
Expand Down

0 comments on commit 70fa514

Please sign in to comment.