Skip to content

Commit 5f89e8d

Browse files
Big-Iron-CheemsWide-CatMineGame159RacoonDog
authored
1.21.5 update (MeteorDevelopment#5265)
* Initial commit TODO: update fabric-renderer-indigo version when it releases * fix a bunch of errors * Fix even more errors Issues with optionals should hopefully now be resolved, unless I missed any. Major issues remaining are with rendering changes, removal of tool/weapon items, and inventory changes. * Mixins + version bump * Fix issues with inventory and tool/weapon changes * Dependency bump Fabric renderer Indigo was updated * Dependency bump 1.21.5 stable * Dependency bump * Fixed rendering + some other things * Fix scissor not being applied to items in GUI * Fixed line rendering in Renderer2D * fix EntityOwner npe * fix meteor toast * `RegistryListSettingScreen` -> `CollectionListSettingScreen` relax parameter from `Registry<T>` to `Iterable<T>` * remove `PacketUtils.PacketRegistry` in favor of a set * Dependency bump Also suppress some deprecation warns * Properly suppress warns Added compile args to provide better logs in the future, suppress launch subproject warns. * PacketUtilsUtil fix filter Previous comparison wouldn't skip the excluded packets * Fix merge commit * Minor cleanup * Include fabric-api-base in the built jar, since it is required by fabric-resource-loader-v0 now * Handle planned deprecation Add missing Suppress too * remove module registry * deprecate `Modules#getList` * cache snbt reader * PotionSpoof rework Spoofing clientside effects is unreliable/broken on pretty much any server. Module rebranded as NoStatusEffects with only effect blocking capability. * fixes and improvements * Fix Shader ESP and Chams --------- Co-authored-by: Wide_Cat <[email protected]> Co-authored-by: MineGame159 <[email protected]> Co-authored-by: RacoonDog <[email protected]> Co-authored-by: Wide-Cat <[email protected]>
1 parent a96efdc commit 5f89e8d

File tree

279 files changed

+2104
-2804
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

279 files changed

+2104
-2804
lines changed

build.gradle.kts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
2-
id("fabric-loom") version "1.9-SNAPSHOT"
2+
id("fabric-loom") version "1.10-SNAPSHOT"
33
id("maven-publish")
4-
id("com.gradleup.shadow") version "9.0.0-beta4"
4+
id("com.gradleup.shadow") version "9.0.0-beta11"
55
}
66

77
base {
@@ -75,6 +75,8 @@ dependencies {
7575
minecraft("com.mojang:minecraft:${properties["minecraft_version"] as String}")
7676
mappings("net.fabricmc:yarn:${properties["yarn_mappings"] as String}:v2")
7777
modImplementation("net.fabricmc:fabric-loader:${properties["loader_version"] as String}")
78+
79+
modInclude(fabricApi.module("fabric-api-base", properties["fapi_version"] as String))
7880
modInclude(fabricApi.module("fabric-resource-loader-v0", properties["fapi_version"] as String))
7981

8082
// Compat fixes
@@ -155,6 +157,8 @@ tasks {
155157

156158
withType<JavaCompile> {
157159
options.release = 21
160+
options.compilerArgs.add("-Xlint:deprecation")
161+
options.compilerArgs.add("-Xlint:unchecked")
158162
}
159163

160164
shadowJar {

gradle.properties

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ org.gradle.jvmargs=-Xmx2G
22
org.gradle.configuration-cache=true
33

44
# Fabric (https://fabricmc.net/develop)
5-
minecraft_version=1.21.4
6-
yarn_mappings=1.21.4+build.7
7-
loader_version=0.16.9
8-
fapi_version=0.114.0+1.21.4
5+
minecraft_version=1.21.5
6+
yarn_mappings=1.21.5+build.1
7+
loader_version=0.16.12
8+
fapi_version=0.119.6+1.21.5
99

1010
# Mod Properties
1111
maven_group=meteordevelopment
@@ -17,16 +17,16 @@ archives_base_name=meteor-client
1717
baritone_version=1.21.4
1818

1919
# Sodium (https://github.com/CaffeineMC/sodium-fabric)
20-
sodium_version=mc1.21.4-0.6.6-fabric
20+
sodium_version=mc1.21.5-0.6.12-fabric
2121

2222
# Lithium (https://github.com/CaffeineMC/lithium-fabric)
23-
lithium_version=mc1.21.4-0.14.3-fabric
23+
lithium_version=mc1.21.5-0.16.0-fabric
2424

2525
# Iris (https://github.com/IrisShaders/Iris)
26-
iris_version=1.8.5+1.21.4-fabric
26+
iris_version=1.8.11+1.21.5-fabric
2727

2828
# ModMenu (https://github.com/TerraformersMC/ModMenu)
29-
modmenu_version=13.0.2
29+
modmenu_version=14.0.0-rc.2
3030

3131
# Orbit (https://github.com/MeteorDevelopment/orbit)
3232
orbit_version=0.2.4
@@ -41,10 +41,10 @@ discordipc_version=1.1
4141
reflections_version=0.10.2
4242

4343
# Netty (https://github.com/netty/netty)
44-
netty_version=4.1.90.Final
44+
netty_version=4.1.118.Final
4545

4646
# ViaFabricPlus (https://github.com/ViaVersion/ViaFabricPlus)
47-
viafabricplus_version=4.0.0
47+
viafabricplus_version=4.1.0
4848

4949
# WaybackAuthLib (https://github.com/FlorianMichael/WaybackAuthLib)
5050
waybackauthlib_version=1.0.1
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists

gradlew

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ done
8686
# shellcheck disable=SC2034
8787
APP_BASE_NAME=${0##*/}
8888
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
89-
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90-
' "$PWD" ) || exit
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
9190

9291
# Use the maximum available, or set MAX_FD != -1 to use that value.
9392
MAX_FD=maximum

launch/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ version = "0.1.0"
88
tasks {
99
withType<JavaCompile> {
1010
options.release = 8
11+
options.compilerArgs.add("-Xlint:-options") // Suppress Java 8 deprecation warnings
1112
}
1213
}

src/main/java/meteordevelopment/meteorclient/commands/arguments/CompoundNbtTagArgumentType.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import java.util.Collection;
1616
import java.util.List;
1717

18-
import static net.minecraft.nbt.StringNbtReader.EXPECTED_VALUE;
18+
import static net.minecraft.nbt.StringNbtReader.EXPECTED_COMPOUND;
1919

2020
public class CompoundNbtTagArgumentType implements ArgumentType<NbtCompound> {
2121
private static final CompoundNbtTagArgumentType INSTANCE = new CompoundNbtTagArgumentType();
@@ -35,7 +35,7 @@ private CompoundNbtTagArgumentType() {}
3535
public NbtCompound parse(StringReader reader) throws CommandSyntaxException {
3636
reader.skipWhitespace();
3737
if (!reader.canRead()) {
38-
throw EXPECTED_VALUE.createWithContext(reader);
38+
throw EXPECTED_COMPOUND.createWithContext(reader);
3939
}
4040
StringBuilder b = new StringBuilder();
4141
int open = 0;
@@ -52,7 +52,7 @@ else if (reader.peek() == '}') {
5252
}
5353
reader.expect('}');
5454
b.append('}');
55-
return StringNbtReader.parse(b.toString()
55+
return StringNbtReader.readCompound(b.toString()
5656
.replace("$", "§")
5757
.replace("§§", "$")
5858
);

src/main/java/meteordevelopment/meteorclient/commands/arguments/RegistryEntryReferenceArgumentType.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ public static RegistryEntry.Reference<StatusEffect> getStatusEffect(CommandConte
9191
return getRegistryEntry(context, name, RegistryKeys.STATUS_EFFECT);
9292
}
9393

94+
@SuppressWarnings("unchecked")
9495
private static <T> RegistryEntry.Reference<T> getRegistryEntry(CommandContext<?> context, String name, RegistryKey<Registry<T>> registryRef) throws CommandSyntaxException {
9596
RegistryEntry.Reference<T> reference = context.getArgument(name, RegistryEntry.Reference.class);
9697
RegistryKey<?> registryKey = reference.registryKey();

src/main/java/meteordevelopment/meteorclient/commands/commands/BindsCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public void build(LiteralArgumentBuilder<CommandSource> builder) {
3535
ChatUtils.info("--- Bound Modules ((highlight)%d(default)) ---", modules.size());
3636

3737
for (Module module : modules) {
38-
HoverEvent hoverEvent = new HoverEvent(HoverEvent.Action.SHOW_TEXT, getTooltip(module));
38+
HoverEvent hoverEvent = new HoverEvent.ShowText(getTooltip(module));
3939

4040
MutableText text = Text.literal(module.title).formatted(Formatting.WHITE);
4141
text.setStyle(text.getStyle().withHoverEvent(hoverEvent));

src/main/java/meteordevelopment/meteorclient/commands/commands/CommandsCommand.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ private MutableText getCommandText(Command command) {
6161
text.append(Text.literal(", ").formatted(Formatting.GRAY));
6262
text.setStyle(text
6363
.getStyle()
64-
.withHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, tooltip))
65-
.withClickEvent(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, Config.get().prefix.get() + command.getName()))
64+
.withHoverEvent(new HoverEvent.ShowText(tooltip))
65+
.withClickEvent(new ClickEvent.SuggestCommand(Config.get().prefix.get() + command.getName()))
6666
);
6767

6868
return text;

src/main/java/meteordevelopment/meteorclient/commands/commands/DropCommand.java

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
import net.minecraft.client.network.ClientPlayerEntity;
1414
import net.minecraft.command.CommandSource;
1515
import net.minecraft.command.argument.ItemStackArgumentType;
16+
import net.minecraft.component.type.AttributeModifierSlot;
17+
import net.minecraft.entity.EquipmentSlot;
1618
import net.minecraft.item.ItemStack;
1719
import net.minecraft.item.Items;
1820
import net.minecraft.text.Text;
@@ -42,25 +44,27 @@ public void build(LiteralArgumentBuilder<CommandSource> builder) {
4244

4345
// Main Inv
4446
builder.then(literal("inventory").executes(context -> drop(player -> {
45-
for (int i = 9; i < player.getInventory().main.size(); i++) {
47+
for (int i = 9; i < player.getInventory().getMainStacks().size(); i++) {
4648
InvUtils.drop().slotMain(i - 9);
4749
}
4850
})));
4951

5052
// Hotbar and main inv
5153
builder.then(literal("all").executes(context -> drop(player -> {
52-
for (int i = 0; i < player.getInventory().size(); i++) {
53-
InvUtils.drop().slot(i);
54-
}
55-
InvUtils.drop().slotOffhand();
56-
})));
54+
for (int i = 0; i < player.getInventory().size(); i++) {
55+
InvUtils.drop().slot(i);
56+
}
57+
InvUtils.drop().slotOffhand();
58+
})));
5759

5860
// Armor
5961
builder.then(literal("armor").executes(context -> drop(player -> {
60-
for (int i = 0; i < player.getInventory().armor.size(); i++) {
61-
InvUtils.drop().slotArmor(i);
62-
}
63-
})));
62+
for (EquipmentSlot equipmentSlot : AttributeModifierSlot.ARMOR) {
63+
if (equipmentSlot.getType() == EquipmentSlot.Type.HUMANOID_ARMOR) {
64+
InvUtils.drop().slotArmor(equipmentSlot.getEntitySlotId());
65+
}
66+
}
67+
})));
6468

6569
// Specific item
6670
builder.then(argument("item", ItemStackArgumentType.itemStack(REGISTRY_ACCESS)).executes(context -> drop(player -> {

0 commit comments

Comments
 (0)