A Minecraft server-side mod that adds various teleportation related commands
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

should be fixed?

MrSn0wy 5771aa42 b0aec33d

+5 -5
+5 -5
common/src/main/java/dev/mrsnowy/teleport_commands/utils/tools.java
··· 39 39 var flying = player.getAbilities().flying; 40 40 41 41 // teleport! 42 - player.teleportTo(world, coords.x, coords.y, coords.z , player.getYRot(), player.getXRot(), false); 42 + player.teleportTo(world, coords.x, coords.y, coords.z, Set.of(), player.getYRot(), player.getXRot(), false); 43 43 44 44 // Restore flying when teleporting dimensions 45 45 if (flying) { ··· 217 217 218 218 // check if the death location isn't safe 219 219 if ( 220 - (belowPlayerId.equals("block.minecraft.water") || !world.getBlockState(belowPlayer).getCollisionShape(world, belowPlayer).isEmpty()) // check if the player is going to fall on teleport 221 - && (world.getBlockState(bottomPlayer).getCollisionShape(world, bottomPlayer).isEmpty() && !unsafeCollisionFreeBlocks.contains(BottomPlayerId)) // check if it is a collision free block, that isn't dangerous 222 - && (!unsafeCollisionFreeBlocks.contains(TopPlayerId)) // check if it is a dangerous collision free block, if it is solid then the player crawls 223 - ){ 220 + (belowPlayerId.equals("block.minecraft.water") || !world.getBlockState(belowPlayer).getCollisionShape(world, belowPlayer).isEmpty()) // check if the player is going to fall on teleport 221 + && (world.getBlockState(bottomPlayer).getCollisionShape(world, bottomPlayer).isEmpty() && !unsafeCollisionFreeBlocks.contains(BottomPlayerId)) // check if it is a collision free block, that isn't dangerous 222 + && (!unsafeCollisionFreeBlocks.contains(TopPlayerId)) // check if it is a dangerous collision free block, if it is solid then the player crawls 223 + ) { 224 224 return false; // it's safe 225 225 } 226 226 return true; // it's not safe!