Skip to content

Commit

Permalink
Fix NPE in runCommand (#969)
Browse files Browse the repository at this point in the history
  • Loading branch information
IzzelAliz committed May 15, 2023
1 parent 02a708d commit 08b035d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public DedicatedServerMixin(String name) {
BukkitRegistry.lockRegistries();
}

@Inject(method = "initServer", at = @At(value = "INVOKE", shift = At.Shift.AFTER, target = "Lnet/minecraft/server/rcon/thread/RconThread;create(Lnet/minecraft/server/ServerInterface;)Lnet/minecraft/server/rcon/thread/RconThread;"))
@Inject(method = "initServer", at = @At(value = "FIELD", target = "Lnet/minecraft/server/dedicated/DedicatedServerProperties;enableRcon:Z"))
public void arclight$setRcon(CallbackInfoReturnable<Boolean> cir) {
this.remoteConsole = new CraftRemoteConsoleCommandSender(this.rconConsoleSource);
}
Expand Down

0 comments on commit 08b035d

Please sign in to comment.