Skip to content

Commit

Permalink
Small fixes for building
Browse files Browse the repository at this point in the history
  • Loading branch information
rainbowdashlabs committed Aug 19, 2023
1 parent 7b0dd73 commit 3161277
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ void handleSpawnedMob(Entity entity) {
if(matching.isEmpty()) return;
if (worldSettings.mobSettings().spawning().spawnPercentage() < ThreadLocalRandom.current().nextInt(100)) return;
// TODO: This doesnt factor in the spawn percentage of matching active mobs itself.
// TODO: Per mob spawn rate is not yet implemented.
CustomMob customMob = matching.get(ThreadLocalRandom.current().nextInt(matching.size()));
// TODO Building the mob with changed attributes, equipment, extensions etc is missing.
coordinator.register(entity, customMob);
Expand Down
1 change: 1 addition & 0 deletions nodes/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ dependencies {
api(libs.bundles.jackson.lite)

testImplementation(libs.bundles.jackson.lite)
testImplementation(libs.bundles.eldoria.utilities)
}
4 changes: 2 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ dependencyResolutionManagement {

version("eldoutil", "2.0.1")
library("eldoutil-items","de.eldoria.util", "items").versionRef("eldoutil")
library("eldoutil-items","de.eldoria.util", "entities").versionRef("eldoutil")
library("eldoutil-entities","de.eldoria.util", "entities").versionRef("eldoutil")
library("eldoutil-jackson","de.eldoria.util", "jackson-configuration").versionRef("eldoutil")
bundle("eldoria-utilities", listOf("eldoutil-items", "eldoutil-jackson"))
bundle("eldoria-utilities", listOf("eldoutil-items", "eldoutil-jackson","eldoutil-entities"))

version("minecraft-latest", "1.19.4-R0.1-SNAPSHOT")
library("paper-latest", "io.papermc.paper", "paper-api").versionRef("minecraft-latest")
Expand Down

0 comments on commit 3161277

Please sign in to comment.