Suggestion - RTP Min Radius
Laifsyn opened this issue · 4 comments
So if you don´t want people having that 0 in a million chance of spawning 1 block away from server spawn
0 in a million chance of spawning 1 block away from server spawn
Er, with the current implementation, it is a literal 0% chance.
RTP destinations are selected the set of points on the perimeter of the circle with radius RTP_RADIUS
. (not from the set of points within the circle)
The RTP position selection code:
int r = CONFIG.RTP_RADIUS.getValue();
final double angle = (new Random()).nextDouble()*2*Math.PI;
final double delta_x = r * Math.cos(angle);
final double delta_z = r * Math.sin(angle);
// center = sever spawn position
final double new_x = center.pos.x + delta_x;
final double new_z = center.pos.z + delta_z;
Is this something that you observed? (There were some strange bugs with RTP reported recently. Some have been resolved already. Some I am patching soon. Could be related to one of these if so.)
Also a rtp center option
Doable. Will add this soon. Tracking in #96