mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-11-04 23:53:01 +00:00
./gradlew checkstyleMain
Every time I forget to run this before pushing, I get very sad.
This commit is contained in:
@@ -15,10 +15,8 @@ import net.minecraft.util.Direction;
|
|||||||
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 dan200.computercraft.ingame.api.TestContext
|
|||||||
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 @@ 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> {
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user