mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-02-20 22:42:03 +01:00
Fix teleport test build error
This commit is contained in:
parent
25e704d6ce
commit
3e69dd4877
@ -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) })
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user