Minor Fixes

[no changelog]
This commit is contained in:
Linnea Gräf
2024-01-19 00:30:35 +01:00
parent dcb769967d
commit fd13f0f55a
2 changed files with 10 additions and 2 deletions

View File

@@ -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

View File

@@ -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;