NPE at server stopping fix
This commit is contained in:
parent
5982028eda
commit
94d83ddbc7
|
@ -112,7 +112,7 @@ public class SimpleAuth implements DedicatedServerModInitializer {
|
||||||
UseItemCallback.EVENT.register((player, world, hand) -> AuthEventHandler.onUseItem(player));
|
UseItemCallback.EVENT.register((player, world, hand) -> AuthEventHandler.onUseItem(player));
|
||||||
AttackEntityCallback.EVENT.register((player, world, hand, entity, entityHitResult) -> AuthEventHandler.onAttackEntity(player));
|
AttackEntityCallback.EVENT.register((player, world, hand, entity, entityHitResult) -> AuthEventHandler.onAttackEntity(player));
|
||||||
UseEntityCallback.EVENT.register((player, world, hand, entity, entityHitResult) -> AuthEventHandler.onUseEntity(player));
|
UseEntityCallback.EVENT.register((player, world, hand, entity, entityHitResult) -> AuthEventHandler.onUseEntity(player));
|
||||||
ServerLifecycleEvents.SERVER_STOPPING.register(minecraftServer -> this.onStopServer());
|
ServerLifecycleEvents.SERVER_STOPPED.register(minecraftServer -> this.onStopServer());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onStopServer() {
|
private void onStopServer() {
|
||||||
|
|
Loading…
Reference in New Issue