fix compile

This commit is contained in:
MattBDev 2019-08-20 16:03:50 -04:00
parent e415e73623
commit 6998c2d230
6 changed files with 15 additions and 8 deletions

View File

@ -16,7 +16,7 @@ fun Project.applyCommonConfiguration() {
//maven { url = uri("https://ci.athion.net/job/FAWE-Piston/ws/") }
ivy { url = uri("https://ci.athion.net/job")
patternLayout {
artifact("/[organisation]/ws/[module].[ext]")
artifact("/[organisation]/[module]/artifact/[revision].[ext]")
}}
}
configurations.all {

View File

@ -42,7 +42,7 @@ public class CFICommand extends CommandProcessor<Object, Object> {
}
@Override
public Object process(InjectedValueAccess context, List<String> args, Object result) {
public int process(InjectedValueAccess context, List<String> args, int result) {
return result;
}

View File

@ -67,13 +67,13 @@ public abstract class CommandProcessor<I, O> implements CommandManager {
}
@Override
public final O /* Need to recompile with FAWE-piston */ execute(InjectedValueAccess context, List<String> args) {
public final int execute(InjectedValueAccess context, List<String> args) {
args = preprocess(context, args);
if (args != null) {
I result = (I) parent.execute(context, args);
int result = parent.execute(context, args);
return process(context, args, result); // TODO NOT IMPLEMENTED (recompile piston)
} else {
return null;
return 0;
}
}
@ -89,5 +89,5 @@ public abstract class CommandProcessor<I, O> implements CommandManager {
public abstract List<String> preprocess(InjectedValueAccess context, List<String> args);
public abstract O process(InjectedValueAccess context, List<String> args, I result);
}
public abstract int process(InjectedValueAccess context, List<String> args, int result);
}

View File

@ -61,7 +61,7 @@ public class DelegateCommandManager implements CommandManager {
}
@Override
public Object execute(InjectedValueAccess context, List<String> args) {
public int execute(InjectedValueAccess context, List<String> args) {
return parent.execute(context, args);
}

View File

@ -1,9 +1,11 @@
applyLibrariesConfiguration()
dependencies {
/*
"shade"("FAWE-Piston:core/build/libs/core-${Versions.PISTON}:lastSuccessfulBuild@jar")
"shade"("FAWE-Piston:core-ap/runtime/build/libs/runtime-${Versions.PISTON}:lastSuccessfulBuild@jar")
"shade"("FAWE-Piston:default-impl/build/libs/default-impl-${Versions.PISTON}:lastSuccessfulBuild@jar")
*/
"shade"("org.enginehub.piston.core-ap:annotations:${Versions.PISTON}")
"shade"("org.enginehub.piston.core-ap:processor:${Versions.PISTON}")
}

View File

@ -10,7 +10,12 @@ dependencies {
}
"shade"("com.thoughtworks.paranamer:paranamer:2.6")
"shade"("com.sk89q.lib:jlibnoise:1.0.0")
"shade"("org.enginehub.piston:core:${Versions.PISTON}")
"shade"("org.enginehub.piston.core-ap:runtime:${Versions.PISTON}")
"shade"("org.enginehub.piston:default-impl:${Versions.PISTON}")
/*
"shade"("FAWE-Piston:core/build/libs/core-${Versions.PISTON}:lastSuccessfulBuild@jar")
"shade"("FAWE-Piston:core-ap/runtime/build/libs/runtime-${Versions.PISTON}:lastSuccessfulBuild@jar")
"shade"("FAWE-Piston:default-impl/build/libs/default-impl-${Versions.PISTON}:lastSuccessfulBuild@jar")
*/
}