Fix NPE in runCommand (#969)
This commit is contained in:
parent
02a708d994
commit
08b035dd93
|
@ -48,7 +48,7 @@ public abstract class DedicatedServerMixin extends MinecraftServerMixin {
|
|||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user