Skip to content

Commit

Permalink
update to Minecraft 1.20.2
Browse files Browse the repository at this point in the history
mod version: 0.9.11-SNAPSHOT
  • Loading branch information
Wudji committed Oct 21, 2023
1 parent 5032b29 commit 0e5e6ee
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
org.gradle.jvmargs=-Xmx1G

# Mod Properties
mod_version = 0.9.10-SNAPSHOT
mod_version = 0.9.11-SNAPSHOT
maven_group = troy.autofish
archives_base_name = autofish

# Fabric Properties
# check these on https://modmuss50.me/fabric.html or https://fabricmc.net/use
minecraft_version=1.20
yarn_mappings=1.20+build.1
loader_version=0.14.21
minecraft_version=1.20.2
yarn_mappings=1.20.2+build.4
loader_version=0.14.23

#Fabric api
fabric_version=0.83.0+1.20
fabric_version=0.90.0+1.20.2

#Cloth Config API
cloth_config_version=11.0.99
cloth_config_version=12.0.109
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
package troy.autofish.mixin;

import net.minecraft.client.MinecraftClient;
import net.minecraft.client.network.ClientAdvancementManager;
import net.minecraft.client.network.ClientCommonNetworkHandler;
import net.minecraft.client.network.ClientConnectionState;
import net.minecraft.client.network.ClientPlayNetworkHandler;
import net.minecraft.network.ClientConnection;
import net.minecraft.network.listener.ClientPlayPacketListener;
import net.minecraft.network.listener.TickablePacketListener;
import net.minecraft.network.packet.s2c.play.EntityVelocityUpdateS2CPacket;
import net.minecraft.network.packet.s2c.play.GameMessageS2CPacket;
import net.minecraft.network.packet.s2c.play.PlaySoundS2CPacket;
Expand All @@ -13,9 +19,11 @@
import troy.autofish.FabricModAutofish;

@Mixin(ClientPlayNetworkHandler.class)
public class MixinClientPlayNetworkHandler {
public abstract class MixinClientPlayNetworkHandler extends ClientCommonNetworkHandler implements TickablePacketListener, ClientPlayPacketListener {
protected MixinClientPlayNetworkHandler(MinecraftClient client, ClientConnection connection, ClientConnectionState connectionState) {
super(client, connection, connectionState);
}

@Shadow private MinecraftClient client;

@Inject(method = "onPlaySound", at = @At("HEAD"))
public void onPlaySound(PlaySoundS2CPacket playSoundS2CPacket_1, CallbackInfo ci) {
Expand Down

0 comments on commit 0e5e6ee

Please sign in to comment.