Fix NPE in runCommand (#969)
This commit is contained in:
parent
ef1854ccb2
commit
87c9caa8ed
@ -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