Rename mixins after what they do, rather than where they do it

[no changelog]
Mixins are now named after what they do, and mixins for the same class that do different things should be in two
separate mixins now.
This commit is contained in:
nea
2023-10-28 04:07:47 +02:00
parent 9e7da2829c
commit ad490f2ea7
24 changed files with 33 additions and 33 deletions

View File

@@ -13,7 +13,7 @@ import net.minecraft.client.MinecraftClient
import net.minecraft.server.command.CommandOutput
import net.minecraft.text.Text
import moe.nea.firmament.Firmament
import moe.nea.firmament.events.ScreenOpenEvent
import moe.nea.firmament.events.ScreenChangeEvent
interface IDataHolder<T> {
companion object {
@@ -60,7 +60,7 @@ interface IDataHolder<T> {
}
fun registerEvents() {
ScreenOpenEvent.subscribe { event ->
ScreenChangeEvent.subscribe { event ->
performSaves()
val p = MinecraftClient.getInstance().player
if (p != null) {