Fix teleport test build error

This commit is contained in:
Ben Woo 2025-01-09 22:29:35 +08:00
parent 25e704d6ce
commit 3e69dd4877

View File

@ -50,7 +50,7 @@ class ConfigTeleportInterceptTest : TestWithMockBukkit() {
@Test
fun `Multiverse API teleport with teleport intercept disabled`() {
config.teleportIntercept = false
safetyTeleporter.teleport(player, location).toAttempt()
safetyTeleporter.to(location).teleport(player).toAttempt()
.onSuccess (Runnable { throw AssertionError("Teleport should have failed") })
.onFailure(Runnable { assertEquals("world", player.world.name) })
}