Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiDragon committed Jan 7, 2024
1 parent 6589398 commit e5817f7
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 32 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ name: Build
on:
push:

env:
DEV_BUILD: true

jobs:
build:
runs-on: ubuntu-latest
Expand Down
42 changes: 21 additions & 21 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
pluginManagement {
repositories {
maven("https://maven.fabricmc.net/") {
name = "Fabric"
}
mavenCentral()
gradlePluginPortal()
}
repositories {
maven("https://maven.fabricmc.net/") {
name = "Fabric"
}
mavenCentral()
gradlePluginPortal()
}
}

fun getProp(name: String): String {
return extra.properties[name] as String
return extra.properties[name] as String
}

dependencyResolutionManagement {
versionCatalogs.create("libs") {
library("fabric-api", "net.fabricmc.fabric-api:fabric-api:${getProp("fabric_version")}")
library("fabric-loader", "net.fabricmc:fabric-loader:${getProp("loader_version")}")
library("fabric-yarn", "net.fabricmc:yarn:${getProp("yarn_mappings")}")
library("minecraft", "com.mojang:minecraft:${getProp("minecraft_version")}")
versionCatalogs.create("libs") {
library("fabric-api", "net.fabricmc.fabric-api:fabric-api:${getProp("fabric_version")}")
library("fabric-loader", "net.fabricmc:fabric-loader:${getProp("loader_version")}")
library("fabric-yarn", "net.fabricmc:yarn:${getProp("yarn_mappings")}")
library("minecraft", "com.mojang:minecraft:${getProp("minecraft_version")}")

library("rei-api", "me.shedaniel:RoughlyEnoughItems-api-fabric:${getProp("rei_version")}")
library("rei-plugin-default", "me.shedaniel:RoughlyEnoughItems-default-plugin-fabric:${getProp("rei_version")}")
library("rei-all", "me.shedaniel:RoughlyEnoughItems-fabric:${getProp("rei_version")}")
library("rei-architectury", "dev.architectury:architectury-fabric:${getProp("architectury_version")}")
library("rei-math", "me.shedaniel.cloth:basic-math:${getProp("cloth_basic_math_version")}")
library("rei-config", "me.shedaniel.cloth:cloth-config-fabric:${getProp("cloth_config_version")}")
library("emi", "dev.emi:emi-fabric:${getProp("emi_version")}")
}
library("rei-api", "me.shedaniel:RoughlyEnoughItems-api-fabric:${getProp("rei_version")}")
library("rei-plugin-default", "me.shedaniel:RoughlyEnoughItems-default-plugin-fabric:${getProp("rei_version")}")
library("rei-all", "me.shedaniel:RoughlyEnoughItems-fabric:${getProp("rei_version")}")
library("rei-architectury", "dev.architectury:architectury-fabric:${getProp("architectury_version")}")
library("rei-math", "me.shedaniel.cloth:basic-math:${getProp("cloth_basic_math_version")}")
library("rei-config", "me.shedaniel.cloth:cloth-config-fabric:${getProp("cloth_config_version")}")
library("emi", "dev.emi:emi-fabric:${getProp("emi_version")}")
}
}
16 changes: 8 additions & 8 deletions src/client/java/io/github/mattidragon/tlaapi/impl/TlaApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
public class TlaApi {
public static final Logger LOGGER = LoggerFactory.getLogger("TLA Api");

public static void loadPlugins(PluginContext implementation) {
var entrypoints = FabricLoader.getInstance().getEntrypoints("tla-api", TlaApiPlugin.class);
LOGGER.info("Loading {} plugins for {}", entrypoints.size(), implementation);
public static void loadPlugins(PluginContext implementation) {
var entrypoints = FabricLoader.getInstance().getEntrypoints("tla-api", TlaApiPlugin.class);
LOGGER.info("Loading {} plugins for {}", entrypoints.size(), implementation);
for (var entrypoint : entrypoints) {
try {
entrypoint.register(implementation);
} catch (RuntimeException e) {
throw new RuntimeException("Error while handling tla api plugin " + entrypoint, e);
}
try {
entrypoint.register(implementation);
} catch (RuntimeException e) {
throw new RuntimeException("Error while handling tla api plugin " + entrypoint, e);
}
}
}
}

0 comments on commit e5817f7

Please sign in to comment.