File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/main/kotlin/com/mairwunnx/projectessentials/spawn Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
- @file:Suppress(" unused" )
1
+ @file:Suppress(" unused" , " SENSELESS_COMPARISON " )
2
2
3
3
package com.mairwunnx.projectessentials.spawn
4
4
@@ -13,7 +13,6 @@ import com.mairwunnx.projectessentials.spawn.commands.SetSpawnCommand
13
13
import com.mairwunnx.projectessentials.spawn.commands.SpawnCommand
14
14
import com.mairwunnx.projectessentials.spawn.configurations.SpawnConfiguration
15
15
import net.minecraft.entity.player.ServerPlayerEntity
16
- import net.minecraft.util.math.BlockPos
17
16
import net.minecraft.world.dimension.DimensionType
18
17
import net.minecraftforge.common.MinecraftForge.EVENT_BUS
19
18
import net.minecraftforge.event.entity.player.PlayerEvent
@@ -69,7 +68,7 @@ class ModuleObject : IModule {
69
68
val player = event.player as ServerPlayerEntity
70
69
if (player.bedPosition.isPresent) {
71
70
player.server.worlds.forEach {
72
- val pos = player.getBedLocation(it.dimension.type) as BlockPos ?
71
+ val pos = player.getBedLocation(it.dimension.type)
73
72
if (pos != null ) {
74
73
player.teleport(
75
74
it,
You can’t perform that action at this time.
0 commit comments