Skip to content

Commit

Permalink
lunch at least now
Browse files Browse the repository at this point in the history
  • Loading branch information
megadoxs committed Jun 16, 2024
1 parent be18a28 commit f4f7478
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
8 changes: 3 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,10 @@ repositories {
}

loom {
splitEnvironmentSourceSets()

accessWidenerPath = file("src/main/resources/megalib.accesswidener")
mods {
"megalib" {
sourceSet sourceSets.main
sourceSet sourceSets.client
register("megalib") {
sourceSet(sourceSets.main)
}
}

Expand Down
3 changes: 3 additions & 0 deletions src/main/java/com/megadoxs/megalib/MegalibClient.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package com.megadoxs.megalib;

import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;

@Environment(EnvType.CLIENT)
public class MegalibClient implements ClientModInitializer {
@Override
public void onInitializeClient() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
import com.mojang.authlib.GameProfile;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.network.AbstractClientPlayerEntity;
import net.minecraft.client.network.ClientPlayerEntity;
import net.minecraft.client.world.ClientWorld;
import org.spongepowered.asm.mixin.Mixin;

@Mixin(ClientPlayerEntity.class)
public abstract class ClientPlayerEntityMixin extends AbstractClientPlayerEntity implements UserInterfaceViewer {
public ClientPlayerEntityMixin(ClientWorld world, GameProfile profile) {
super(world, profile);
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/megalib.accesswidener
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessWidener v1 named

accessible class net/minecraft/client/screen/Screen

0 comments on commit f4f7478

Please sign in to comment.