1.19.1
This commit is contained in:
1 parent
b677cd73c8
commit
ab45b6fd67
2 files changed
+5
-4
No files matched your search
+2
-2
@@ -4,7 +4,7 @@ org.gradle.jvmargs=-Xmx1G
|
|||||||
# Fabric Properties
|
# Fabric Properties
|
||||||
# check these on https://fabricmc.net/use
|
# check these on https://fabricmc.net/use
|
||||||
# or better: https://modmuss50.me/fabric.html
|
# or better: https://modmuss50.me/fabric.html
|
||||||
minecraft_version=1.19.1-rc2
|
minecraft_version=1.19.1
|
||||||
loader_version=0.14.8
|
loader_version=0.14.8
|
||||||
fabric_version=0.56.0+1.19
|
fabric_version=0.56.0+1.19
|
||||||
|
|
||||||
@@ -25,4 +25,4 @@ org.gradle.jvmargs=-Xmx1G
|
|||||||
# The "name" or id of the Curseforge version for the secondary branch
|
# The "name" or id of the Curseforge version for the secondary branch
|
||||||
# This is needed because CF uses too vague names for snapshots
|
# This is needed because CF uses too vague names for snapshots
|
||||||
# Can also be the version ID directly coming from https://minecraft.curseforge.com/api/game/versions?token=[API_TOKEN]
|
# Can also be the version ID directly coming from https://minecraft.curseforge.com/api/game/versions?token=[API_TOKEN]
|
||||||
release-extra-curse-version = Minecraft 1.19:1.19-Snapshot
|
release-extra-curse-version = Minecraft 1.19:1.19.1
|
||||||
@@ -7,7 +7,9 @@ import io.netty.channel.ChannelHandlerContext;
|
|||||||
import io.netty.util.concurrent.Future;
|
import io.netty.util.concurrent.Future;
|
||||||
import io.netty.util.concurrent.GenericFutureListener;
|
import io.netty.util.concurrent.GenericFutureListener;
|
||||||
import net.minecraft.network.Connection;
|
import net.minecraft.network.Connection;
|
||||||
|
import net.minecraft.network.PacketSendListener;
|
||||||
import net.minecraft.network.protocol.Packet;
|
import net.minecraft.network.protocol.Packet;
|
||||||
|
import org.jetbrains.annotations.Nullable;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.gen.Accessor;
|
import org.spongepowered.asm.mixin.gen.Accessor;
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
@@ -26,8 +28,7 @@ public abstract class Connection_packetCounterMixin implements ClientConnectionI
|
|||||||
|
|
||||||
// Add to the packet counter whenever a packet is sent.
|
// Add to the packet counter whenever a packet is sent.
|
||||||
@Inject(method = "sendPacket", at = @At("HEAD"))
|
@Inject(method = "sendPacket", at = @At("HEAD"))
|
||||||
private void packetOutCount(Packet<?> packet_1,
|
private void packetOutCount(Packet<?> packet, @Nullable PacketSendListener packetSendListener, CallbackInfo ci)
|
||||||
GenericFutureListener<? extends Future<? super Void>> genericFutureListener_1, CallbackInfo ci)
|
|
||||||
{
|
{
|
||||||
PacketCounter.totalOut++;
|
PacketCounter.totalOut++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user