NPE at server stopping fix

This commit is contained in:
samo_lego 2020-07-02 10:00:44 +02:00
parent 5982028eda
commit 94d83ddbc7
1 changed files with 1 additions and 1 deletions

View File

@ -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() {