Skip to content

Commit

Permalink
GH-424 Update example. Fix also legacy simple schematic generator. (#424
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Rollczi authored Sep 8, 2024
1 parent c20b5c0 commit 0990398
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions examples/bukkit/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,22 @@ bukkit {
version = "${project.version}"
}

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}

tasks.shadowJar {
archiveFileName.set("$pluginName v${project.version}.jar")

listOf(
"panda.std",
// "dev.rollczi.litecommands",
"dev.rollczi.litecommands",
).forEach { relocate(it, "$packageName.libs.$it") }
}

tasks.withType<JavaCompile> {
options.compilerArgs.add("-parameters")
options.release = 17
}

sourceSets.test {
Expand All @@ -51,5 +56,4 @@ sourceSets.test {

tasks.runServer {
minecraftVersion("1.21")
jvmArgs(listOf("-XX:+AllowEnhancedClassRedefinition"))
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected Stream<String> generateRaw(SchematicInput<SENDER> schematicInput) {

Stream<String> routeScheme = generateRoute(schematicInput, schematicInput.getLastRoute(), base);

if (executor != null) {
if (executor != null && isVisible(schematicInput, executor)) {
Stream<String> executorScheme = Stream.of(base + generateExecutor(schematicInput, executor));
return Stream.concat(routeScheme, executorScheme);
}
Expand Down

0 comments on commit 0990398

Please sign in to comment.