Skip to content

Commit

Permalink
Merge branch 'version/7.2.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Feb 29, 2024
2 parents 98750e0 + 5511908 commit 01a5916
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions worldedit-forge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import net.minecraftforge.gradle.common.util.RunConfig
import net.minecraftforge.gradle.userdev.UserDevExtension
import net.minecraftforge.gradle.userdev.tasks.RenameJarInPlace
import org.spongepowered.asm.gradle.plugins.MixinExtension.ConfigureReobfTask

plugins {
id("net.minecraftforge.gradle")
Expand Down Expand Up @@ -73,6 +74,13 @@ configure<org.spongepowered.asm.gradle.plugins.MixinExtension> {
config("worldedit-forge.mixins.json")
}

// Workaround until SpongePowered/MixinGradle#51 is merged
afterEvaluate {
tasks.withType<ConfigureReobfTask>().configureEach {
dependsOn(tasks.compileJava)
}
}

configure<BasePluginExtension> {
archivesName.set("${archivesName.get()}-mc$minecraftVersion")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ public static void init() {
}

public static void onPacketData(CustomPayloadEvent event) {
if (event.getSource().isClientSide()) {
// Ignore client-side packets
return;
}
ServerPlayer player = event.getSource().getSender();
LocalSession session = ForgeWorldEdit.inst.getSession(player);
String text = event.getPayload().toString(StandardCharsets.UTF_8);
Expand Down

0 comments on commit 01a5916

Please sign in to comment.