From fd13f0f55a5e70a1506a58bb4b3c0275c41509b9 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Fri, 19 Jan 2024 00:30:35 +0100 Subject: Minor Fixes [no changelog] --- docs/release_script.sh | 10 +++++++++- .../nea/firmament/mixins/IncomingPacketListenerPatches.java | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/release_script.sh b/docs/release_script.sh index 4573551..bd167b5 100755 --- a/docs/release_script.sh +++ b/docs/release_script.sh @@ -125,7 +125,8 @@ git commit -m 'Prepare release '"$newversion"' [no changelog]' echo Tagging release commit git tag "$newversion" -releasenotes="$basedir/build/releasenotes.md" +mkdir -p "$basedir/.gradle" +releasenotes="$basedir/.gradle/releasenotes.md" echo Building release notes echo "**Full Changelog**: https://github.com/nea89o/Firmament/compare/$oldversion...$newversion" > "$releasenotes" @@ -133,6 +134,13 @@ echo >> "$releasenotes" git log --pretty='- %s' --grep '[no changelog]' --invert-grep --fixed-strings "$oldversion..$newversion" | tac >> "$releasenotes" echo >> "$releasenotes" +echo Check Release notes: +echo ---------------------------------------------- +cat "$releasenotes" +echo ---------------------------------------------- +echo Press Enter to resume +read + echo Building JAR "$basedir"/gradlew clean build diff --git a/src/main/java/moe/nea/firmament/mixins/IncomingPacketListenerPatches.java b/src/main/java/moe/nea/firmament/mixins/IncomingPacketListenerPatches.java index 88c03d6..a269e09 100644 --- a/src/main/java/moe/nea/firmament/mixins/IncomingPacketListenerPatches.java +++ b/src/main/java/moe/nea/firmament/mixins/IncomingPacketListenerPatches.java @@ -23,7 +23,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; public abstract class IncomingPacketListenerPatches { - @ModifyExpressionValue(method = "onCommandTree", at = @At(value = "NEW", target = "(Lcom/mojang/brigadier/tree/RootCommandNode;)Lcom/mojang/brigadier/CommandDispatcher;")) + @ModifyExpressionValue(method = "onCommandTree", at = @At(value = "NEW", target = "(Lcom/mojang/brigadier/tree/RootCommandNode;)Lcom/mojang/brigadier/CommandDispatcher;", remap = false)) public CommandDispatcher onOnCommandTree(CommandDispatcher dispatcher) { MaskCommands.Companion.publish(new MaskCommands(dispatcher)); return dispatcher; -- cgit