Skip to content

Commit

Permalink
1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Dueris committed Dec 28, 2024
1 parent 7e90498 commit 03122e4
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
if: "!contains(github.event.head_commit.message, '--skip') && !contains(github.event.head_commit.commit.message, '--skip')"
uses: softprops/action-gh-release@v1
with:
name: Latest v1.3.0 dev
tag_name: mc1.21/0-v1.3.0
name: Latest v1.3.1 dev
tag_name: mc1.21/0-v1.3.1
body: \"changes\"=${{ github.event.head_commit.message }}
token: ${{ secrets.GIT_TOKEN }}
files: build/libs/*.jar
Expand Down
2 changes: 1 addition & 1 deletion API-DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repositories {
}

dependencies {
implementation("io.github.Dueris:OriginsPaper:mc1.21~0-v1.3.0")
implementation("io.github.Dueris:OriginsPaper:mc1.21~0-v1.3.1")
}
```

Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ plugins {
`maven-publish`
id("io.papermc.paperweight.userdev") version "1.7.7" apply true
id("com.gradleup.shadow") version "9.0.0-beta4" apply true
id("io.github.dueris.eclipse.gradle") version "1.2.2" apply true
id("io.github.dueris.eclipse.gradle") version "1.2.3" apply true
}

version = "v1.3.0"
version = "v1.3.1"
val apoli = "2.12.0-alpha.14+mc.1.21.1"
val calio = "1.14.0-alpha.8+mc.1.21.x"
val mcMajor = "21"
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion origins/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "A full, but unofficial, port of Calio/Apoli/Origins to PaperMC se
dependencies {
implementation("com.github.DavidNiessen:JsonConfigAPI:1.0")
compileOnly("org.mineskin:java-client-jsoup:2.0.0-SNAPSHOT")
compileOnly(files("../depends/eclipse-2.0.0-all.jar"))
compileOnly(files("../depends/eclipse-2.0.3-SNAPSHOT-all.jar"))
compileOnly("org.mineskin:java-client:2.0.0-SNAPSHOT")
project("calio")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ public class Bootstrap implements BootstrapInitializer {
private static final Logger log = LogManager.getLogger(Bootstrap.class);

@Override
public void onInitializeBootstrap() {
public void onInitializeBootstrap(BootstrapContext bootstrapContext) {
// Eclipse entrypoint.
OriginsPaper.initialize();
OriginsPaper.initialize(bootstrapContext);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.google.gson.JsonPrimitive;
import io.github.dueris.calio.CraftCalio;
import io.github.dueris.calio.util.IdentifierAlias;
import io.github.dueris.eclipse.api.entrypoint.BootstrapInitializer;
import io.github.dueris.eclipse.api.mod.ModContainer;
import io.github.dueris.eclipse.loader.EclipseLauncher;
import io.github.dueris.originspaper.action.type.BiEntityActionTypes;
Expand Down Expand Up @@ -61,7 +62,7 @@ public class OriginsPaper {
public static MinecraftServer server;
public static Path jarFile;
public static ModContainer modContainer;
public static String version = "v1.3.0";
public static String version = "v1.3.1";
public static OriginsPaper.ServerConfig config;

public static @NotNull ResourceLocation identifier(String path) {
Expand All @@ -76,17 +77,16 @@ public static OriginsPlugin getPlugin() {
return OriginsPlugin.plugin;
}

public static void initialize() {
ModContainer container = EclipseLauncher.INSTANCE.modEngine().container("origins").orElseThrow();
jarFile = container.resource().path().toAbsolutePath().normalize(); // Normalize path to complete.
modContainer = container;
public static void initialize(BootstrapInitializer.@NotNull BootstrapContext bootstrapContext) {
jarFile = bootstrapContext.getModSource();
modContainer = bootstrapContext.getModContainer();
PluginInstances.init();

CraftCalio.initialize();

final JsonConfigAPI jsonConfigAPI = new JsonConfigAPI(true);
File serverJson = new File(jarFile.getParent().resolve("Origins").toFile(), "origins_server.json");
String parentPath = jarFile.getParent().resolve("Origins").toFile().getAbsolutePath() + File.separator;
File serverJson = new File(bootstrapContext.getDataDirectory().toFile(), "origins_server.json");
String parentPath = bootstrapContext.getDataDirectory().toFile().getAbsolutePath() + File.separator;

jsonConfigAPI.registerConfig(
new OriginsPaper.ServerConfig(),
Expand Down

0 comments on commit 03122e4

Please sign in to comment.