Better Respawn

Better Respawn

191k Downloads

Respawning behind world border

Skidamek opened this issue ยท 1 comments

commented

Please read the FAQ before submitting a bug report!

Bug description
It is possible to respawn behind the world border if you are within the configured range.

Steps to reproduce the issue

  1. Don't change mod config, default values.
  2. Set world border in server.properties e.g.10000.
  3. Teleport to cords e.g -3500 4850.
  4. Kill yourself few times.
  5. You are behind world border and killed one more time.

Expected behavior
Players shouldn't be respawned behind world border.

Log files
I don't think whole log here is really needed.

[22:14:31] [Server thread/INFO]: Updating the respawn location of player Kornl00 to [-3476, 64, 4685] in minecraft:overworld
[22:17:42] [Server thread/INFO]: Searching for respawn location - Attempt 1/16
[22:17:42] [Server thread/INFO]: Found valid respawn location: [-3472, 69, 5104]
[22:17:42] [Server thread/INFO]: Set temporary respawn location to [-3472, 69, 5104]
[22:17:42] [Server thread/INFO]: Kornl00 was slain by Grizzly Bear
[22:17:42] [Server thread/INFO]: [STDOUT]: [Graves] Grave spawned at: -3324, 73, 4914 for player Kornl00.
[22:17:48] [Server thread/INFO]: Async chunk loading for player Kornl00 completed

Versions

  • Minecraft version: 1.19.2
  • Forge version: Fabric loader 0.14.19
  • Mod version: 1.19.2-2.0.1

Other mods (server side)
- additionalstructures 4.1.1
- alternate-current 1.5.0
- amplified_nether 1.2.1
- another_furniture 2.1.2-1.19.2
- antixray 1.3.0
- appleskin 2.4.1+mc1.19
- architectury 6.5.77
- attributefix 17.2.6
- audioplayer 1.19.2-1.4.5
- auditory 0.0.4-1.19.x
- backportgamerules 1.0.1+1.19.2
- better-explosions 1.0.0
- better-fabric-console 1.1.2
- better_respawn 1.19.2-2.0.1
- betterbeds 1.2.0
- bettercombat 1.6.2+1.19
- betterdeserttemples 1.19.2-Fabric-2.2.2
- betterdungeons 1.19.2-Fabric-3.2.1
- betterfortresses 1.19.2-Fabric-1.0.5
- betterfpsdist 1.19-2.4
- bettermineshafts 1.19.2-Fabric-3.2.0
- betteroceanmonuments 1.19.2-Fabric-2.1.0
- bettershields 0.0.1-1.19.2
- betterstrongholds 1.19.2-Fabric-3.2.0
- bettertridents 4.0.2
- betterwitchhuts 1.19.2-Fabric-2.1.0
- boatbreakfix 1.0.11
- bookshelf 16.2.18
- bountiful 3.0.0
- boxtrot 1.4
- bugjump 1.0.0-1.19.2
- c2me 0.2.0+alpha.9.9
- candlelight_dinner 1.0.0
- carpet 1.4.84
- carpet-fixes 1.19-1.12.2
- chunky 1.3.38
- clientpermissions 1.0.0
- collective 6.53
- completeconfig 2.1.0
- computercraft 1.101.2
- connectiblechains 2.1.4+1.19.2
- connectivity 1.19.2-3.8
- create 0.5.0.i-991+1.19.2
- creaturesfromthesnow 4.1.0+1.19.2
- crittersandcompanions 1.19.2-1.0.3
- crouch_jumping 1.0
- cullclouds 0.1.0
- culturaldelights 0.14.9+1.19.2
- dangerousstonecutter 1.7.2
- dawn 3.5.0
- deathcounter 1.3.0
- debugify 2.8.0
- diagonalfences 4.2.3
- do_a_barrel_roll 2.6.2+1.19.2
- doubledoors 4.5
- duckling 2.0.8
- dummmmmmy 1.19.2-1.7.2
- easywhitelist 1.0.1
- ecologics 2.1.11
- editsign 2.6.0
- elytraslot 6.1.0+1.19.2
- emi 0.7.3+1.19.2
- emi_loot 0.6.1+1.19
- emiffect 0.1.5+mc1.19.2
- emotecraft 2.2.7-b.build.48
- endrem 5.2.0
- expandeddelight 0.2.5.2
- explorify-fabric 1.19-1.3.0
- fabric-api 0.76.0+1.19.2
- fabric-language-kotlin 1.9.3+kotlin.1.8.20
- fabric-start-the-music 0.4.7
- fabricloader 0.14.19
- farmersdelight 1.19.2-1.3.9
- fastload 3.3.3
- ferritecore 5.0.3
- fishingreal 1.19.2-1.5
- forgeconfigapiport 4.2.11
- forgottengraves 1.19.2-3.0.5
- freezemod 1.0.0
- friendsandfoes 1.8.1
- geckolib3 3.1.40
- geophilic 1.19-2.0.0
- goated 1.19.2-1.3.1
- grapplemod 1.19.2-v1.5
- head_in_the_clouds 1.0.0
- iceberg 1.0.46
- jade 8.7.3
- jadeaddons 3.1.0
- jamlib 0.6.0+1.19
- java 17
- kambrik 4.0-1.19.2
- kiwi 8.3.3
- knowmyname 1.1.1
- krypton 0.2.1
- langsplit 2.1.5.1-beta
- last_slot 1.0.0
- lazydfu 0.1.3
- leashmod 1.0.2
- letmedespawn fabric-1.0.2
- lithium 0.11.1
- lootintegrations 1.19.3-3.1
- lootr 0.4.25.64
- memoryleakfix 1.0.0
- minecraft 1.19.2
- moonlight 1.19.2-2.2.29
- moyai 1.19.2-2.0.0
- mru 0.1.5+1.19.2
- mysticaloaktree 1.19.2-1.8
- naturalist 2.1.1
- nbtcrafting 2.2.3+mc1.19
- neruina 0.0.1
- nethersdelight 1.0.1
- nochatreports 1.19.2-v1.13.12
- noportals 1.0.1
- nullscape 1.2.1
- pathunderfencegates 1.3.0
- pehkui 3.7.2+1.14.4-1.19.4
- pingspam 1.3.1+1.19.2
- pockets 0.10.0
- promenade 2.7.1
- puzzleslib 4.3.12
- railways 1.2.0+fabric-mc1.19.2-build.2
- raknetify 0.1.0+alpha.5.69
- regions_unexplored 0.4.1+1.19.2
- rightclickharvest 3.1.0+1.19-1.19.2
- rocks 1.6.1
- rottencreatures 1.0.1
- servercore 1.3.5+1.19.2
- servertick 1.7
- sit 1.19-20
- sleep_tight 1.19.2-1.0.8
- slumber 1.1.0
- smarterfarmers 1.19.2-1.7.2
- smoke_suppression 1.0.13
- smoothboot 1.19-1.7.1
- smoothchunk 1.19.1-2.0
- smwyg 1.0.3
- snowrealmagic 5.1.0
- snowundertrees 1.0.0+1.19.2
- snowyleavesplus 0.1.5
- sound_physics_remastered 1.19.2-1.0.18
- spark 1.10.34
- spellbound_weapons_mr 4.0.1d
- spiderstpo 1.19.2-2.0.3
- spyglass_astronomy 1.0.1-mc1.19.1+1.19.2
- stackrefill 4.0
- starbidous_portal_linking 1.0.0
- starlight 1.1.1+fabric.ae22326
- structory 1.3.1a
- takesapillage 1.0.4
- terrablender 2.0.1.136
- terralith 2.3
- toggleableitemframes 2.1.1-1.19.x
- treechop 0.17.6
- trinkets 3.4.2
- tumbleweed 0.5.1
- unsafe-world-random-access-detector 1.1.0
- v_slab_compat 1.19.2-1.4
- vcinteraction 1.19.2-1.0.3
- vinery 1.2.3
- visualworkbench 4.2.4
- vmp 0.2.0+beta.7.29
- voicechat 1.19.2-2.4.4
- walkietalkie 1.19.2-1.1.1
- wardenloot 1.0.9-1.19.x
- wilderwild 1.1.14-Fabric+1.19.2
- wondrouswilds 1.19.2-1.1.6
- wwfix 1.0.0
- wwoo 3.1.9.1
- xaerominimapfair 23.3.1
- yet-another-config-lib 2.2.0-for-1.19.2
- yetanotherauthmod 1.0.0
- yungsapi 1.19.2-Fabric-3.8.9
- yungsextras 1.19.2-Fabric-3.1.0

Screenshots (Optional)
image

commented

That's sus line of code i guess

pos = PlayerRespawnLogic.getSpawnPosInChunk(world, new ChunkPos(new BlockPos(getRandomRange(deathLocation.getX(), min, max), 0, getRandomRange(deathLocation.getZ(), min, max))));