mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-02-16 20:41:59 +01:00
Additional null check; fix signportals issue 17
This commit is contained in:
parent
fdb8c862f9
commit
251b66a8d0
@ -46,7 +46,7 @@ public class PlayerDestination implements MVDestination {
|
|||||||
plLoc = (Player) e.getPassenger();
|
plLoc = (Player) e.getPassenger();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p != null && plLoc != null && !plLoc.getName().equalsIgnoreCase(p.getName())) {
|
if (p != null && plLoc != null) {
|
||||||
return p.getLocation();
|
return p.getLocation();
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
@ -132,6 +132,9 @@ public class LocationManipulation {
|
|||||||
* @return The {@link String}
|
* @return The {@link String}
|
||||||
*/
|
*/
|
||||||
public static String strCoordsRaw(Location l) {
|
public static String strCoordsRaw(Location l) {
|
||||||
|
if(l == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
String result = "";
|
String result = "";
|
||||||
DecimalFormat df = new DecimalFormat();
|
DecimalFormat df = new DecimalFormat();
|
||||||
df.setMinimumFractionDigits(0);
|
df.setMinimumFractionDigits(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user