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 " )
22
33package com.mairwunnx.projectessentials.spawn
44
@@ -13,7 +13,6 @@ import com.mairwunnx.projectessentials.spawn.commands.SetSpawnCommand
1313import com.mairwunnx.projectessentials.spawn.commands.SpawnCommand
1414import com.mairwunnx.projectessentials.spawn.configurations.SpawnConfiguration
1515import net.minecraft.entity.player.ServerPlayerEntity
16- import net.minecraft.util.math.BlockPos
1716import net.minecraft.world.dimension.DimensionType
1817import net.minecraftforge.common.MinecraftForge.EVENT_BUS
1918import 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,
You can’t perform that action at this time.
0 commit comments