mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-12 03:00:30 +00:00
./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.Direction;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.server.ServerWorld;
|
||||
import net.minecraftforge.fml.common.ObfuscationReflectionHelper;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.List;
|
||||
|
||||
public class TurtleCompareCommand implements ITurtleCommand
|
||||
|
@ -4,7 +4,6 @@ import dan200.computercraft.ingame.api.TestContext
|
||||
import kotlinx.coroutines.CoroutineName
|
||||
import kotlinx.coroutines.GlobalScope
|
||||
import kotlinx.coroutines.launch
|
||||
import net.minecraft.test.TestCollection
|
||||
import net.minecraft.test.TestTrackerHolder
|
||||
import java.lang.reflect.Method
|
||||
import java.util.*
|
||||
@ -50,7 +49,8 @@ internal object MainThread : AbstractCoroutineContextElement(ContinuationInterce
|
||||
}
|
||||
}
|
||||
|
||||
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> {
|
||||
override val context: CoroutineContext get() = cont.context
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- 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, ...)
|
||||
if ok then return ... end
|
||||
|
Loading…
Reference in New Issue
Block a user