Skip to content

Commit

Permalink
[Wurst-Bot] Update to 23w41a
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Oct 11, 2023
1 parent dfbd3d6 commit 403db5e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ org.gradle.parallel=true
# Fabric Properties
# check these at https://fabricmc.net/develop/ and
# https://www.curseforge.com/minecraft/mc-mods/fabric-api
minecraft_version=23w40a
yarn_mappings=23w40a+build.3
minecraft_version=23w41a
yarn_mappings=23w41a+build.1
loader_version=0.14.23

#Fabric api
fabric_version=0.89.4+1.20.3
fabric_version=0.90.1+1.20.3

# Mod Properties
mod_version = v7.37.1-MC23w40a
mod_version = v7.37.1-MC23w41a
maven_group = net.wurstclient
archives_base_name = Wurst-Client

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/wurstclient/WurstClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public enum WurstClient
public static IMinecraftClient IMC;

public static final String VERSION = "7.37.1";
public static final String MC_VERSION = "23w40a";
public static final String MC_VERSION = "23w41a";

private WurstAnalytics analytics;
private EventManager eventManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@
import java.util.Arrays;
import java.util.List;
import java.util.function.Supplier;

import net.minecraft.class_8828.LiteralTextContent;
import net.minecraft.client.font.MultilineText;
import net.minecraft.client.gui.DrawContext;
import net.minecraft.client.gui.Drawable;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.gui.widget.ButtonWidget;
import net.minecraft.text.PlainTextContent.Literal;
import net.minecraft.text.Text;
import net.minecraft.text.TranslatableTextContent;
import net.wurstclient.WurstClient;
Expand Down Expand Up @@ -134,7 +133,7 @@ public static boolean isCausedByNoChatReports(Text disconnectReason)
&& TRANSLATABLE_DISCONNECT_REASONS.contains(tr.getKey()))
return true;

if(disconnectReason.getContent() instanceof LiteralTextContent lt
if(disconnectReason.getContent() instanceof Literal lt
&& LITERAL_DISCONNECT_REASONS.contains(lt.string()))
return true;

Expand Down

0 comments on commit 403db5e

Please sign in to comment.