Skip to content

Commit

Permalink
fix forge uberpacket sending crashing the server
Browse files Browse the repository at this point in the history
  • Loading branch information
fayer3 committed Jun 3, 2024
1 parent 06895c1 commit 89e7991
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ shadowJar {
]
archiveClassifier.set("dev-shadow")
}

// TODO remove that once archloom fixes forge
remapJar.onlyIf { false }
remapJar {
input.set shadowJar.archiveFile
dependsOn shadowJar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

@Mixin(Connection.class)
public class ForgeConnectionMixin {
@ModifyVariable(at = @At("HEAD"), method = "send(Lnet/minecraft/network/protocol/Packet;)V", argsOnly = true)
@ModifyVariable(at = @At("HEAD"), method = "send(Lnet/minecraft/network/protocol/Packet;Lnet/minecraft/network/PacketSendListener;Z)V", argsOnly = true)
private Packet<?> vivecraft$convertPacket(Packet<?> packet) {
// stupid forge doesn't register packets, so these wouldn't actually be sent correctly on the client
// need to convert them to forge packets
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ minecraft_version=1.20.6
enabled_platforms=fabric,forge,neoforge

archives_base_name=vivecraft
mod_version=1.1.9-b3
mod_version=1.1.9-b4
maven_group=org.vivecraft

architectury_version=12.0.26
Expand Down

0 comments on commit 89e7991

Please sign in to comment.