mirror of
https://github.com/TeamMidnightDust/MidnightLib.git
synced 2025-12-16 17:25:09 +01:00
Experimental 24w09a port
- Only the overview button position in the Options Screen is not quite right
This commit is contained in:
@@ -1,21 +1,14 @@
|
||||
package eu.midnightdust.fabric.core;
|
||||
|
||||
import eu.midnightdust.core.MidnightLib;
|
||||
import eu.midnightdust.core.screen.MidnightConfigOverviewScreen;
|
||||
import net.fabricmc.api.ClientModInitializer;
|
||||
import net.fabricmc.api.DedicatedServerModInitializer;
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
import net.fabricmc.fabric.api.client.screen.v1.ScreenEvents;
|
||||
|
||||
public class MidnightLibFabric implements ClientModInitializer, DedicatedServerModInitializer {
|
||||
@Override @Environment(EnvType.CLIENT)
|
||||
public void onInitializeClient() {
|
||||
MidnightLib.onInitializeClient();
|
||||
ScreenEvents.AFTER_INIT.register((client, screen, scaledWidth, scaledHeight) -> {
|
||||
MidnightConfigOverviewScreen.addButtonToOptionsScreen(screen, client);
|
||||
});
|
||||
}
|
||||
public void onInitializeClient() {MidnightLib.onInitializeClient();}
|
||||
@Override @Environment(EnvType.SERVER)
|
||||
public void onInitializeServer() {MidnightLib.onInitializeServer();}
|
||||
}
|
||||
|
||||
@@ -32,9 +32,13 @@
|
||||
},
|
||||
"depends": {
|
||||
"fabric-resource-loader-v0": "*",
|
||||
"minecraft": ">=1.20.3"
|
||||
"minecraft": ">=1.20.4"
|
||||
},
|
||||
|
||||
"mixins": [
|
||||
"midnightlib.mixins.json"
|
||||
],
|
||||
|
||||
"custom": {
|
||||
"modmenu": {
|
||||
"links": {
|
||||
@@ -46,6 +50,5 @@
|
||||
},
|
||||
"badges": [ "library" ]
|
||||
}
|
||||
},
|
||||
"accessWidener": "midnightlib.accesswidener"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user