Merge branch 'master' into 1.16
This commit is contained in:
commit
a7bed5302e
1 file changed
+9
-1
@@ -20,7 +20,15 @@ public class PathfindingVisualizer
|
|||||||
{
|
{
|
||||||
if (!(player instanceof ServerPlayerEntity))
|
if (!(player instanceof ServerPlayerEntity))
|
||||||
return null;
|
return null;
|
||||||
int minDuration = Integer.parseInt(option);
|
int minDuration;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
minDuration = Integer.parseInt(option);
|
||||||
|
}
|
||||||
|
catch (NumberFormatException ignored)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
if (miliseconds < minDuration)
|
if (miliseconds < minDuration)
|
||||||
return null;
|
return null;
|
||||||
if (player.squaredDistanceTo(entity) > 1000 && player.squaredDistanceTo(target) > 1000)
|
if (player.squaredDistanceTo(entity) > 1000 && player.squaredDistanceTo(target) > 1000)
|
||||||
|
|||||||
Reference in new issue
Block a user