-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix all forge problems and release for fabric
- Loading branch information
1 parent
18ead32
commit 1cafc51
Showing
48 changed files
with
401 additions
and
347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Java with Gradle | |
|
||
on: | ||
push: | ||
branches: [master] | ||
branches: [1.16.5] | ||
|
||
jobs: | ||
build: | ||
|
@@ -11,10 +11,10 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Set up JDK 17 | ||
- name: Set up JDK 8 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: 17 | ||
java-version: 8 | ||
|
||
- name: Give permissions to Gradle | ||
run: chmod +x ./gradlew | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,26 @@ | ||
import net.fabricmc.loom.api.LoomGradleExtensionAPI | ||
|
||
plugins { | ||
java | ||
id("architectury-plugin") version "3.4-SNAPSHOT" | ||
id("dev.architectury.loom") version "1.4-SNAPSHOT" apply false | ||
} | ||
|
||
val modVersion: String by extra | ||
val minecraftVersion: String by extra | ||
|
||
architectury { | ||
minecraft = minecraftVersion | ||
} | ||
|
||
subprojects { | ||
apply(plugin = "dev.architectury.loom") | ||
|
||
base.archivesName.set("PacketFixer-" + project.name) | ||
|
||
configure<LoomGradleExtensionAPI> { | ||
silentMojangMappingsLicense() | ||
} | ||
|
||
dependencies { | ||
"minecraft"("com.mojang:minecraft:$minecraftVersion") | ||
"mappings"(project.the<LoomGradleExtensionAPI>().officialMojangMappings()) | ||
} | ||
} | ||
|
||
allprojects { | ||
apply(plugin = "java") | ||
apply(plugin = "architectury-plugin") | ||
|
||
version = modVersion | ||
group = "dev.tonimatas.packetfixer" | ||
group = "net.tonimatasdev" | ||
version = "$modVersion-$minecraftVersion" | ||
base.archivesName.set("PacketFixer-" + project.name) | ||
|
||
repositories { | ||
java { | ||
withSourcesJar() | ||
toolchain.languageVersion.set(JavaLanguageVersion.of(8)) | ||
|
||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
} | ||
|
||
tasks.withType<JavaCompile> { | ||
options.encoding = "UTF-8" | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
common/src/main/java/dev/tonimatas/packetfixer/PacketFixer.java
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
...n/src/main/java/dev/tonimatas/packetfixer/mixins/ClientboundCustomPayloadPacketMixin.java
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
common/src/main/java/dev/tonimatas/packetfixer/mixins/Varint21FrameDecoderMixin.java
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
common/src/main/java/dev/tonimatas/packetfixer/util/Hooks.java
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
fabric/src/main/java/dev/tonimatas/packetfixer/PacketFixerFabric.java
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
fabric/src/main/java/dev/tonimatas/packetfixer/util/fabric/HooksImpl.java
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
fabric/src/main/java/net/tonimatasdev/packetfixerfabric/PacketFixerFabric.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package net.tonimatasdev.packetfixerfabric; | ||
|
||
import net.fabricmc.api.ModInitializer; | ||
import org.apache.logging.log4j.LogManager; | ||
|
||
public class PacketFixerFabric implements ModInitializer { | ||
@Override | ||
public void onInitialize() { | ||
LogManager.getLogger().info("Packet Fixer (Fabric) has been initialized successfully"); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...c/src/main/java/net/tonimatasdev/packetfixerfabric/mixin/CustomPayloadC2SPacketMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package net.tonimatasdev.packetfixerfabric.mixin; | ||
|
||
|
||
import net.minecraft.network.packet.c2s.play.CustomPayloadC2SPacket; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.Constant; | ||
import org.spongepowered.asm.mixin.injection.ModifyConstant; | ||
|
||
@Mixin(value = CustomPayloadC2SPacket.class, priority = 9999) | ||
public class CustomPayloadC2SPacketMixin { | ||
@ModifyConstant(method = "read", constant = @Constant(intValue = 32767)) | ||
private int newSize(int value) { | ||
return Integer.MAX_VALUE; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...c/src/main/java/net/tonimatasdev/packetfixerfabric/mixin/CustomPayloadS2CPacketMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package net.tonimatasdev.packetfixerfabric.mixin; | ||
|
||
import net.minecraft.network.packet.s2c.play.CustomPayloadS2CPacket; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.Constant; | ||
import org.spongepowered.asm.mixin.injection.ModifyConstant; | ||
|
||
@Mixin(value = CustomPayloadS2CPacket.class, priority = 9999) | ||
public class CustomPayloadS2CPacketMixin { | ||
@ModifyConstant(method = "<init>*", constant = @Constant(intValue = 1048576)) | ||
private static int newSize(int value) { | ||
return Integer.MAX_VALUE; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...c/main/java/net/tonimatasdev/packetfixerfabric/mixin/LoginQueryRequestS2CPacketMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package net.tonimatasdev.packetfixerfabric.mixin; | ||
|
||
import net.minecraft.network.packet.s2c.login.LoginQueryRequestS2CPacket; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.Constant; | ||
import org.spongepowered.asm.mixin.injection.ModifyConstant; | ||
|
||
@Mixin(value = LoginQueryRequestS2CPacket.class, priority = 9999) | ||
public class LoginQueryRequestS2CPacketMixin { | ||
@ModifyConstant(method = "read", constant = @Constant(intValue = 1048576)) | ||
private int newSize(int value) { | ||
return Integer.MAX_VALUE; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
.../main/java/net/tonimatasdev/packetfixerfabric/mixin/LoginQueryResponseC2SPacketMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package net.tonimatasdev.packetfixerfabric.mixin; | ||
|
||
import net.minecraft.network.packet.c2s.login.LoginQueryResponseC2SPacket; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.Constant; | ||
import org.spongepowered.asm.mixin.injection.ModifyConstant; | ||
|
||
@Mixin(value = LoginQueryResponseC2SPacket.class, priority = 9999) | ||
public class LoginQueryResponseC2SPacketMixin { | ||
@ModifyConstant(method = "read", constant = @Constant(intValue = 1048576)) | ||
private int newSize(int value) { | ||
return Integer.MAX_VALUE; | ||
} | ||
} |
Oops, something went wrong.