mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Fixes #1873
This commit is contained in:
parent
de1af960bb
commit
528edc80d0
@ -30,6 +30,7 @@
|
|||||||
* Fixed #1833
|
* Fixed #1833
|
||||||
* Fixed #1834
|
* Fixed #1834
|
||||||
* Fixed #1843
|
* Fixed #1843
|
||||||
|
* Fixed #1873
|
||||||
|
|
||||||
## Release Candidate 11 (25 Apr 2020)
|
## Release Candidate 11 (25 Apr 2020)
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ public final class TeleportationManager {
|
|||||||
teleporterUsers.add(uuid);
|
teleporterUsers.add(uuid);
|
||||||
|
|
||||||
int time = getTeleportationTime(complexity, source, destination);
|
int time = getTeleportationTime(complexity, source, destination);
|
||||||
updateProgress(uuid, 100 / time, 0, source, destination, resistance);
|
updateProgress(uuid, Math.max(1, 100 / time), 0, source, destination, resistance);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getTeleportationTime(int complexity, Location source, Location destination) {
|
public int getTeleportationTime(int complexity, Location source, Location destination) {
|
||||||
@ -98,7 +98,7 @@ public final class TeleportationManager {
|
|||||||
return Math.min(distance, 100_000_000);
|
return Math.min(distance, 100_000_000);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return 100_000_000;
|
return 150_000_000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user