mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-27 14:13:11 +02:00
Don't create order twice.
This commit is contained in:
parent
d2ed656409
commit
f82d387a88
@ -207,17 +207,17 @@ public class RegisteredItemStore {
|
||||
// Better support this to avoid confusion (?).
|
||||
order = ((IGetRegistrationOrder) item).getRegistrationOrder();
|
||||
}
|
||||
// Check Annotations.
|
||||
//
|
||||
if (order == null) {
|
||||
// Check Annotations.
|
||||
RegisterWithOrder annoOrder = item.getClass().getAnnotation(RegisterWithOrder.class);
|
||||
if (annoOrder != null) {
|
||||
order = new RegistrationOrder(annoOrder);
|
||||
}
|
||||
}
|
||||
//
|
||||
if (order == null) {
|
||||
// Default order.
|
||||
order = RegistrationOrder.DEFAULT_ORDER;
|
||||
else {
|
||||
// Default order.
|
||||
order = RegistrationOrder.DEFAULT_ORDER;
|
||||
}
|
||||
}
|
||||
else {
|
||||
// Copy what has been found outside, huh.
|
||||
|
Loading…
Reference in New Issue
Block a user