Skip to content

Commit

Permalink
Remove building packetevents from actions script
Browse files Browse the repository at this point in the history
  • Loading branch information
Axionize committed Oct 27, 2024
1 parent 7c12918 commit 73ab238
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/build-gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,29 +31,6 @@ jobs:
with:
gradle-version: "8.10" # Quotes required to prevent YAML converting to number

# Temporary workaround to packetevents bugs, use custom fork build
- name: Checkout packetevents repository
uses: actions/checkout@v3
with:
repository: booky10/packetevents
ref: fix/fabric-module
path: packetevents

- name: Update version in packetevents
run: |
cd packetevents
sed -i 's/val fullVersion = ".*"/val fullVersion = "2.6.0"/' build.gradle.kts
- name: Build packetevents with Gradle
run: |
cd packetevents
gradle build -x test
- name: Publish packetevents to Maven Local
run: |
cd packetevents
gradle publishToMavenLocal
- name: Generate build number
id: buildnumber
uses: einaregilsson/build-number@v3
Expand Down
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ allprojects {
}
maven("https://libraries.minecraft.net/")
maven("https://maven.neoforged.net/releases")
maven("https://repo.codemc.io/repository/maven-snapshots/")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

public class ToggleOffGroundSubcommand implements BuilderCommand {

public static boolean offGroundSyncEnabled;
public static boolean offGroundSyncEnabled = true;
private String offGroundSyncEnableMessage;
private String offGroundSyncDisableMessage;

Expand Down Expand Up @@ -52,7 +52,7 @@ public void onConfigReloadEvent(ConfigReloadEvent event) {

private void loadConfigSettings() {
ConfigWrapper configWrapper = Base.INSTANCE.getConfigManager().getConfigWrapper();
this.offGroundSyncEnabled = configWrapper.getBoolean("settings.offground.enabled", true);
offGroundSyncEnabled = configWrapper.getBoolean("settings.offground.enabled", true);
this.offGroundSyncEnableMessage = configWrapper.getString("messages.offground.enable",
"&aSuccessfully enabled offground synchronization.");
this.offGroundSyncDisableMessage = configWrapper.getString("messages.offground.disable",
Expand Down

0 comments on commit 73ab238

Please sign in to comment.