./gradlew checkstyleMain
Every time I forget to run this before pushing, I get very sad.
This commit is contained in:
parent
eaa7359c8c
commit
6d367e08a3
|
@ -15,10 +15,8 @@
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraft.world.server.ServerWorld;
|
import net.minecraft.world.server.ServerWorld;
|
||||||
import net.minecraftforge.fml.common.ObfuscationReflectionHelper;
|
|
||||||
|
|
||||||
import javax.annotation.Nonnull;
|
import javax.annotation.Nonnull;
|
||||||
import java.lang.reflect.Method;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class TurtleCompareCommand implements ITurtleCommand
|
public class TurtleCompareCommand implements ITurtleCommand
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
import kotlinx.coroutines.CoroutineName
|
import kotlinx.coroutines.CoroutineName
|
||||||
import kotlinx.coroutines.GlobalScope
|
import kotlinx.coroutines.GlobalScope
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import net.minecraft.test.TestCollection
|
|
||||||
import net.minecraft.test.TestTrackerHolder
|
import net.minecraft.test.TestTrackerHolder
|
||||||
import java.lang.reflect.Method
|
import java.lang.reflect.Method
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
@ -50,7 +49,8 @@ fun tick() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun <T> interceptContinuation(continuation: Continuation<T>): Continuation<T> = MainThreadInterception(continuation)
|
override fun <T> interceptContinuation(continuation: Continuation<T>): Continuation<T> =
|
||||||
|
MainThreadInterception(continuation)
|
||||||
|
|
||||||
private class MainThreadInterception<T>(val cont: Continuation<T>) : Continuation<T> {
|
private class MainThreadInterception<T>(val cont: Continuation<T>) : Continuation<T> {
|
||||||
override val context: CoroutineContext get() = cont.context
|
override val context: CoroutineContext get() = cont.context
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
--- Extend the test API with some convenience functions.
|
--- Extend the test API with some convenience functions.
|
||||||
--
|
--
|
||||||
-- It's much easier to declare these in Lua rather than Java..
|
-- It's much easier to declare these in Lua rather than Java.
|
||||||
|
|
||||||
function test.assert(ok, ...)
|
function test.assert(ok, ...)
|
||||||
if ok then return ... end
|
if ok then return ... end
|
||||||
|
|
Loading…
Reference in New Issue