Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Apr 19, 2023
1 parent cecd5c1 commit acb7b02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
15 changes: 0 additions & 15 deletions src/main/java/io/github/gaming32/worldhost/WorldHost.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,13 @@

//#if FORGE
//$$ import net.minecraftforge.fml.common.Mod;
//#if MC > 11202
//$$ import net.minecraftforge.api.distmarker.Dist;
//$$ import net.minecraftforge.eventbus.api.SubscribeEvent;
//$$ import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
//#else
//$$ import net.minecraftforge.fml.common.event.FMLInitializationEvent;
//#endif
//#endif

//#if FORGE
//#if MC > 11202
//$$ @Mod(WorldHost.MOD_ID)
//#else
//$$ @Mod(modid = WorldHost.MOD_ID, useMetadata = true, clientSideOnly = true)
//#endif
//#endif
public class WorldHost
//#if FABRIC
Expand Down Expand Up @@ -133,19 +125,12 @@ public static void saveConfig() {
}

//#if FORGE
//#if MC > 11202
//$$ @Mod.EventBusSubscriber(modid = MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT)
//$$ public static class ClientModEvents {
//$$ @SubscribeEvent
//$$ public static void onClientSetup(FMLClientSetupEvent event) {
//$$ init();
//$$ }
//$$ }
//#else
//$$ @Mod.EventHandler
//$$ public void init(FMLInitializationEvent event) {
//$$ init();
//$$ }
//#endif
//#endif
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ protected WorldHostScreen(Component component) {
super(component);
}

public static void drawRightString(PoseStack poseStack, Font font, Component text, int x, int y, int color) {
public
//#if MC > 11601
static
//#endif
void drawRightString(PoseStack poseStack, Font font, Component text, int x, int y, int color) {
drawString(poseStack, font, text, x - font.width(text), y, color);
}

Expand Down

0 comments on commit acb7b02

Please sign in to comment.