fabric: Use lockRegistration instead of calling transitionOrThrow to lock registration
This commit is contained in:
parent
fd9a819e30
commit
05bf533419
1 changed files with 1 additions and 1 deletions
|
|
@ -354,7 +354,7 @@ public abstract class FabricCommandManager<C, S extends CommandSource> extends C
|
|||
|
||||
/* transition state to prevent further registration */
|
||||
final void registrationCalled() {
|
||||
this.transitionOrThrow(RegistrationState.REGISTERING, RegistrationState.AFTER_REGISTRATION);
|
||||
this.lockRegistration();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue