Simplify one of our checks on getPrisoner
This commit is contained in:
parent
ce1231da39
commit
b83d1245f8
@ -279,11 +279,7 @@ public class JailManager {
|
|||||||
public Prisoner getPrisoner(UUID uuid) {
|
public Prisoner getPrisoner(UUID uuid) {
|
||||||
Jail j = getJailPlayerIsIn(uuid);
|
Jail j = getJailPlayerIsIn(uuid);
|
||||||
|
|
||||||
if(j != null) {
|
return j == null ? null : j.getPrisoner(uuid);
|
||||||
return j.getPrisoner(uuid);
|
|
||||||
}else {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user