Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Jul 15, 2024
1 parent a19a38c commit eff68e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ protected void init() {
//#if MC >= 1.19.4
setInitialFocus(nameField);
//#else
//$$ usernameField.setFocus(true);
//$$ nameField.setFocus(true);
//#endif
nameField.setResponder(name -> {
lastTyping = Util.getMillis();
Expand Down Expand Up @@ -187,7 +187,7 @@ public boolean keyPressed(int keyCode, int scanCode, int modifiers) {
@Override
public void tick() {
//#if MC < 1.20.2
//$$ usernameField.tick();
//$$ nameField.tick();
//#endif
if (Util.getMillis() - 300 > lastTyping && delayedFriendUpdate) {
delayedFriendUpdate = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import io.github.gaming32.worldhost.WorldHost;
import io.github.gaming32.worldhost.plugin.FriendAdder;
import io.github.gaming32.worldhost.plugin.FriendListFriend;
import io.github.gaming32.worldhost.versions.Components;
import net.minecraft.network.chat.Component;

import java.nio.charset.StandardCharsets;
Expand All @@ -18,7 +19,7 @@ public class WorldHostFriendAdder implements FriendAdder {

@Override
public Component label() {
return Component.literal("World Host");
return Components.literal("World Host");
}

@Override
Expand Down

0 comments on commit eff68e8

Please sign in to comment.