Skip to content

Commit

Permalink
Fix Reconnect button and ServerSpoof
Browse files Browse the repository at this point in the history
- no clue if `minecraft:register` or `fabric` should be kept
  • Loading branch information
Big-Iron-Cheems committed Apr 29, 2024
1 parent 2219ba3 commit 94832d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import net.minecraft.client.gui.screen.TitleScreen;
import net.minecraft.client.gui.widget.ButtonWidget;
import net.minecraft.client.gui.widget.DirectionalLayoutWidget;
import net.minecraft.client.network.CookieStorage;
import net.minecraft.text.Text;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
Expand Down Expand Up @@ -79,6 +78,6 @@ private String getText() {
@Unique
private void tryConnecting() {
var lastServer = Modules.get().get(AutoReconnect.class).lastServerConnection;
ConnectScreen.connect(new TitleScreen(), mc, lastServer.left(), lastServer.right(), false, new CookieStorage(null));
ConnectScreen.connect(new TitleScreen(), mc, lastServer.left(), lastServer.right(), false, null);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public class ServerSpoof extends Module {
private final Setting<List<String>> channels = sgGeneral.add(new StringListSetting.Builder()
.name("channels")
.description("If the channel contains the keyword, this outgoing channel will be blocked.")
.defaultValue("fabric", "minecraft:register")
.defaultValue("fabric", "minecraft:register", "minecraft:brand")
.visible(blockChannels::get)
.build()
);
Expand Down

0 comments on commit 94832d1

Please sign in to comment.