Skip to content

Commit 243bb80

Browse files
committed
ModuleObject.kt updated.
Signed-off-by: Pavel Erokhin (MairwunNx) <MairwunNx@gmail.com>
1 parent 0a7b515 commit 243bb80

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/kotlin/com/mairwunnx/projectessentials/spawn/ModuleObject.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@file:Suppress("unused")
1+
@file:Suppress("unused", "SENSELESS_COMPARISON")
22

33
package com.mairwunnx.projectessentials.spawn
44

@@ -13,7 +13,6 @@ import com.mairwunnx.projectessentials.spawn.commands.SetSpawnCommand
1313
import com.mairwunnx.projectessentials.spawn.commands.SpawnCommand
1414
import com.mairwunnx.projectessentials.spawn.configurations.SpawnConfiguration
1515
import net.minecraft.entity.player.ServerPlayerEntity
16-
import net.minecraft.util.math.BlockPos
1716
import net.minecraft.world.dimension.DimensionType
1817
import net.minecraftforge.common.MinecraftForge.EVENT_BUS
1918
import net.minecraftforge.event.entity.player.PlayerEvent
@@ -69,7 +68,7 @@ class ModuleObject : IModule {
6968
val player = event.player as ServerPlayerEntity
7069
if (player.bedPosition.isPresent) {
7170
player.server.worlds.forEach {
72-
val pos = player.getBedLocation(it.dimension.type) as BlockPos?
71+
val pos = player.getBedLocation(it.dimension.type)
7372
if (pos != null) {
7473
player.teleport(
7574
it,

0 commit comments

Comments
 (0)