Fix Order and Change Fuction
Dieser Commit ist enthalten in:
Ursprung
234671a8b0
Commit
fe050d76a4
@ -84,7 +84,7 @@ public class PersonalKit {
|
||||
list.add(new PersonalKit(rs));
|
||||
if(list.size() > 1) {
|
||||
list.forEach(kit -> {
|
||||
if(list.indexOf(kit) >= 1) kit.setInUse(false);
|
||||
if(list.indexOf(kit) >= 1) kit.setUse(false);
|
||||
});
|
||||
list.removeIf(kit -> !kit.isInUse());
|
||||
}
|
||||
@ -129,10 +129,10 @@ public class PersonalKit {
|
||||
}
|
||||
|
||||
public void setInUse(boolean inUse) {
|
||||
setUse(inUse);
|
||||
PersonalKit kit = getKitInUse(userID, gamemode);
|
||||
if(kit != null)
|
||||
kit.setUse(inUse);
|
||||
setUse(inUse);
|
||||
}
|
||||
|
||||
private void setUse(boolean inUse) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren