Merge branch 'master' into 1.16

This commit is contained in:
gnembon committed 2020-07-22 01:38:27 -03:00
commit a7bed5302e
1 file changed
+9 -1
@@ -20,7 +20,15 @@ public class PathfindingVisualizer
{
if (!(player instanceof ServerPlayerEntity))
return null;
int minDuration = Integer.parseInt(option);
int minDuration;
try
{
minDuration = Integer.parseInt(option);
}
catch (NumberFormatException ignored)
{
return null;
}
if (miliseconds < minDuration)
return null;
if (player.squaredDistanceTo(entity) > 1000 && player.squaredDistanceTo(target) > 1000)