diff --git a/gradle.properties b/gradle.properties index fe1dfe8..b33efce 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ org.gradle.parallel=true org.gradle.jvmargs=-Xmx2048M org.gradle.daemon=true -amethyst_version=2020.1.1-RELEASE +amethyst_version=2021.0.3-RELEASE zircon_version=2021.1.0-RELEASE junit_version=4.12 mockito_version=1.10.19 diff --git a/src/main/kotlin/group/ouroboros/potrogue/world/World.kt b/src/main/kotlin/group/ouroboros/potrogue/world/World.kt index fed8457..4fe784d 100644 --- a/src/main/kotlin/group/ouroboros/potrogue/world/World.kt +++ b/src/main/kotlin/group/ouroboros/potrogue/world/World.kt @@ -3,10 +3,10 @@ package group.ouroboros.potrogue.world import group.ouroboros.potrogue.blocks.GameBlock import group.ouroboros.potrogue.extensions.GameEntity import group.ouroboros.potrogue.extensions.position -import org.hexworks.amethyst.api.Engine import org.hexworks.amethyst.api.entity.Entity import org.hexworks.amethyst.api.entity.EntityType import org.hexworks.amethyst.internal.TurnBasedEngine +import org.hexworks.amethyst.platform.Dispatchers import org.hexworks.cobalt.datatypes.Maybe import org.hexworks.zircon.api.builder.game.GameAreaBuilder import org.hexworks.zircon.api.data.Position3D @@ -32,7 +32,7 @@ class World ( // We added the Engine to the world which handles our entities. // We could have used dependency inversion here, but this is not likely to change in the future so we’re keeping it simple. - private val engine: TurnBasedEngine = Engine.create() + private val engine: TurnBasedEngine = TurnBasedEngine(Dispatchers.Single) init { startingBlocks.forEach { (pos, block) ->