fabric: Use lockRegistration instead of calling transitionOrThrow to lock registration

This commit is contained in:
jmp 2021-04-18 22:39:03 -07:00 committed by Jason
parent fd9a819e30
commit 05bf533419

View file

@ -354,7 +354,7 @@ public abstract class FabricCommandManager<C, S extends CommandSource> extends C
/* transition state to prevent further registration */ /* transition state to prevent further registration */
final void registrationCalled() { final void registrationCalled() {
this.transitionOrThrow(RegistrationState.REGISTERING, RegistrationState.AFTER_REGISTRATION); this.lockRegistration();
} }
/** /**