Skip to content

Commit

Permalink
[Wurst-Bot] Update to 25w05a
Browse files Browse the repository at this point in the history
Alexander01998 committed Jan 30, 2025
1 parent ce3339b commit da3bb4a
Showing 6 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -5,15 +5,15 @@ org.gradle.parallel=true
# Fabric Properties
# check these at https://fabricmc.net/develop/ and
# https://modrinth.com/mod/fabric-api/versions
minecraft_version=25w04a
yarn_mappings=25w04a+build.1
minecraft_version=25w05a
yarn_mappings=25w05a+build.2
loader_version=0.16.10

# Fabric API
fabric_version=0.115.1+1.21.5
fabric_version=0.115.2+1.21.5

# Mod Properties
mod_version=v7.46.6-MC25w04a
mod_version=v7.46.6-MC25w05a
maven_group=net.wurstclient
archives_base_name=Wurst-Client

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

public static final String VERSION = "7.46.6";
public static final String MC_VERSION = "25w04a";
public static final String MC_VERSION = "25w05a";

private WurstAnalytics analytics;
private EventManager eventManager;
2 changes: 1 addition & 1 deletion src/main/java/net/wurstclient/commands/GiveCmd.java
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ public void call(String[] args) throws CmdException
if(nbt != null)
try
{
NbtCompound tag = StringNbtReader.method_67315(nbt);
NbtCompound tag = StringNbtReader.readCompound(nbt);
NbtComponent.set(DataComponentTypes.CUSTOM_DATA, stack, tag);

}catch(CommandSyntaxException e)
4 changes: 2 additions & 2 deletions src/main/java/net/wurstclient/commands/ModifyCmd.java
Original file line number Diff line number Diff line change
@@ -89,7 +89,7 @@ private void add(ItemStack stack, String[] args) throws CmdError

try
{
NbtCompound parsedNbt = StringNbtReader.method_67315(nbtString);
NbtCompound parsedNbt = StringNbtReader.readCompound(nbtString);
itemNbt.copyFrom(parsedNbt);
stack.set(DataComponentTypes.CUSTOM_DATA, NbtComponent.of(itemNbt));

@@ -107,7 +107,7 @@ private void set(ItemStack stack, String[] args) throws CmdError

try
{
NbtCompound tag = StringNbtReader.method_67315(nbt);
NbtCompound tag = StringNbtReader.readCompound(nbt);
stack.set(DataComponentTypes.CUSTOM_DATA, NbtComponent.of(tag));

}catch(CommandSyntaxException e)
2 changes: 1 addition & 1 deletion src/main/java/net/wurstclient/mixin/IngameHudMixin.java
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@ private void onRenderPlayerList(DrawContext context,
if(debugHud.shouldShowDebugHud())
return;

float tickDelta = tickCounter.getTickDelta(true);
float tickDelta = tickCounter.getTickProgress(true);
EventManager.fire(new GUIRenderEvent(context, tickDelta));
}

6 changes: 3 additions & 3 deletions src/main/java/net/wurstclient/util/RotationUtils.java
Original file line number Diff line number Diff line change
@@ -93,7 +93,7 @@ public static double getAngleToLastReportedLookVec(Rotation rotation)
// lastYaw/Pitch do not get updated when the player is in a vehicle
Rotation lastReported = player.hasVehicle()
? new Rotation(player.getYaw(), player.getPitch())
: new Rotation(player.lastYaw, player.lastPitch);
: new Rotation(player.lastYawClient, player.lastPitchClient);

return lastReported.getAngleTo(rotation);
}
@@ -116,8 +116,8 @@ public static boolean isFacingBox(Box box, double range)
*/
public static Rotation slowlyTurnTowards(Rotation end, float maxChange)
{
float startYaw = MC.player.lastYaw;
float startPitch = MC.player.lastPitch;
float startYaw = MC.player.lastYawClient;
float startPitch = MC.player.lastPitchClient;
float endYaw = end.yaw();
float endPitch = end.pitch();

0 comments on commit da3bb4a

Please sign in to comment.