MCTowns

MCTowns

52.4k Downloads

Town Spawn Location not Accurate, Killing users

apengstrom opened this issue ยท 3 comments

commented

Here's an interesting bug, when setting town spawns and then teleporting to them. I'll set a town spawn location while standing on a block, or floating in air, and the actual spawn location will differ from what I've set, sometimes landing people to suffocate in the block immediately below, or drowning, etc. So, I took screenshots of my F3 info and coordinates when setting the town spawn, and then after teleporting to said town spawn.

Any thoughts as to why the coordinates are off ever so slightly? Is it rounded to a specific number? It should be exactly the same as the full-length coordinate, x z and y. This screenshots don't exactly show it, but if I was floating at for example, 67.238774 height, I think it would round to 67 when setting the spawn?

Setting the spawn:
setting_town_spawn

Teleporting to the town spawn:
teleport_town_spawn

commented

Artifact 9 on jenkins should have this issue fixed, required a change in a library instead of mctowns itself.

commented

Verified fixed.

commented

Yeah, it's either rounding or truncating. Whatever Bukkit considers the "Block" location vs the actual location to be.

I'll make it store the exact location.