mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
Fixes #1942
This commit is contained in:
parent
efd9903ace
commit
d19da209d5
@ -2,6 +2,7 @@
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
**Table of contents**
|
||||
|
||||
- [Release Candidate 13 (TBD)](#release-candidate-13-tbd)
|
||||
- [Release Candidate 12 (27 May 2020)](#release-candidate-12-27-may-2020)
|
||||
- [Release Candidate 11 (25 Apr 2020)](#release-candidate-11-25-apr-2020)
|
||||
- [Release Candidate 10 (28 Mar 2020)](#release-candidate-10-28-mar-2020)
|
||||
@ -21,6 +22,7 @@
|
||||
|
||||
#### Fixes
|
||||
* Fixed Ore Washer recipes showing up twice
|
||||
* Fixed #1942
|
||||
|
||||
## Release Candidate 12 (27 May 2020)
|
||||
|
||||
|
@ -53,7 +53,10 @@ public final class TeleportationManager {
|
||||
int index = 0;
|
||||
|
||||
for (Waypoint waypoint : profile.getWaypoints()) {
|
||||
if (index >= teleporterInventory.length) break;
|
||||
if (index >= teleporterInventory.length) {
|
||||
break;
|
||||
}
|
||||
|
||||
int slot = teleporterInventory[index];
|
||||
|
||||
Location l = waypoint.getLocation();
|
||||
@ -67,7 +70,7 @@ public final class TeleportationManager {
|
||||
index++;
|
||||
}
|
||||
|
||||
menu.open(p);
|
||||
Slimefun.runSync(() -> menu.open(p));
|
||||
});
|
||||
}
|
||||
|
||||
@ -113,7 +116,6 @@ public final class TeleportationManager {
|
||||
if (isValid(p, source)) {
|
||||
if (progress > 99) {
|
||||
p.sendTitle(ChatColors.color(SlimefunPlugin.getLocal().getMessage(p, "machines.TELEPORTER.teleported")), ChatColors.color("&b100%"), 20, 60, 20);
|
||||
|
||||
p.teleport(destination);
|
||||
|
||||
if (resistance) {
|
||||
|
@ -87,10 +87,22 @@ public final class PlayerProfile {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This method provides a fast way to access the armor of a {@link Player}.
|
||||
* It returns a cached version, represented by {@link HashedArmorpiece}.
|
||||
*
|
||||
* @return The cached armor for this {@link Player}
|
||||
*/
|
||||
public HashedArmorpiece[] getArmor() {
|
||||
return armor;
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns the {@link Config} which is used to store the data.
|
||||
* Only intended for internal usage.
|
||||
*
|
||||
* @return The {@link Config} associated with this {@link PlayerProfile}
|
||||
*/
|
||||
public Config getConfig() {
|
||||
return configFile;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user