some education fixes

This commit is contained in:
Moritz Zwerger 2024-08-09 22:22:50 +02:00
parent 967900100d
commit 379043ee88
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
4 changed files with 22 additions and 6 deletions

View File

@ -46,7 +46,6 @@ import de.bixilon.minosoft.modding.event.master.GlobalEventMaster
import de.bixilon.minosoft.modding.loader.phase.DefaultModPhases
import de.bixilon.minosoft.properties.MinosoftProperties
import de.bixilon.minosoft.properties.MinosoftPropertiesLoader
import de.bixilon.minosoft.terminal.AutoConnect
import de.bixilon.minosoft.terminal.CommandLineArguments
import de.bixilon.minosoft.terminal.RunConfiguration
import de.bixilon.minosoft.updater.MinosoftUpdater
@ -118,7 +117,7 @@ object Minosoft {
Log.log(LogMessageType.GENERAL, LogLevels.WARN) { "Eros is disabled, no gui will show up! Use the cli to connect to servers!" }
}
RunConfiguration.AUTO_CONNECT_TO?.let { AutoConnect.autoConnect(it) }
// RunConfiguration.AUTO_CONNECT_TO?.let { AutoConnect.autoConnect(it) }
}
private fun javafx(taskWorker: TaskWorker) {

View File

@ -17,7 +17,11 @@ import de.bixilon.kutil.observer.DataObserver.Companion.observe
import de.bixilon.kutil.shutdown.AbstractShutdownReason
import de.bixilon.kutil.shutdown.ShutdownManager
import de.bixilon.minosoft.Minosoft
import de.bixilon.minosoft.assets.minecraft.index.IndexAssetsType
import de.bixilon.minosoft.config.profile.profiles.account.AccountProfileManager
import de.bixilon.minosoft.config.profile.profiles.audio.AudioProfileManager
import de.bixilon.minosoft.config.profile.profiles.rendering.RenderingProfileManager
import de.bixilon.minosoft.config.profile.profiles.resources.ResourcesProfileManager
import de.bixilon.minosoft.data.accounts.Account
import de.bixilon.minosoft.data.accounts.types.offline.OfflineAccount
import de.bixilon.minosoft.education.config.EducationC
@ -72,12 +76,25 @@ object MinosoftEducation {
RunConfiguration.APPLICATION_NAME = "Minosoft Education"
RunConfiguration.IGNORE_YGGDRASIL = true
RunConfiguration.IGNORE_MODS = true
RunConfiguration.PROFILES_HOT_RELOADING = false
RunConfiguration.PROFILES_SAVING = false
}
fun postSetup() {
AudioProfileManager.selected.enabled = false
AudioProfileManager.selected.skipLoading = true
RenderingProfileManager.selected.performance.fastBedrock = false
ResourcesProfileManager.selected.assets.indexAssetsTypes.clear()
ResourcesProfileManager.selected.assets.indexAssetsTypes += IndexAssetsType.OTHER
ResourcesProfileManager.selected.assets.indexAssetsTypes += IndexAssetsType.LANGUAGE
}
@JvmStatic
fun main(args: Array<String>) {
setup()
Minosoft.main(args)
Minosoft.main(emptyArray())
postSetup()
// TODO: load education.json

View File

@ -1,6 +1,6 @@
/*
* Minosoft
* Copyright (C) 2020-2023 Moritz Zwerger
* Copyright (C) 2020-2024 Moritz Zwerger
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
*
@ -52,7 +52,7 @@ class PerformanceHUDElement(guiRenderer: GUIRenderer) : Element(guiRenderer), La
override fun poll(): Boolean {
val debugHUDElement = guiRenderer.hud[DebugHUDElement]
val hide = debugHUDElement?.enabled == true
val hide = true
val fps = guiRenderer.context.renderStats.smoothAvgFPS.rounded10
if (this.hide == hide && this.fps == fps) {
return false

View File

@ -36,7 +36,7 @@
"minecraft:cobblestone": {
"id": 12,
"states": {
"15": {}
"14": {}
}
},
"minecraft:oak_planks": {