Skip to content

Commit

Permalink
Old mod loader code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Hilligans committed Mar 26, 2024
1 parent bd3a338 commit 13ffa5f
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 675 deletions.
2 changes: 0 additions & 2 deletions src/main/java/dev/hilligans/ourcraft/GameInstance.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import dev.hilligans.ourcraft.mod.handler.EventBus;
import dev.hilligans.ourcraft.mod.handler.content.ModList;
import dev.hilligans.ourcraft.mod.handler.events.common.RegistryClearEvent;
import dev.hilligans.ourcraft.mod.handler.ModLoader;
import dev.hilligans.ourcraft.mod.handler.pipeline.InstanceLoaderPipeline;
import dev.hilligans.ourcraft.network.Protocol;
import dev.hilligans.ourcraft.recipe.helper.RecipeView;
Expand Down Expand Up @@ -61,7 +60,6 @@

public class GameInstance {
public final EventBus EVENT_BUS = new EventBus();
public final ModLoader MOD_LOADER = new ModLoader(this);
public final Logger LOGGER = new Logger("", "");
public final ResourceManager RESOURCE_MANAGER = new ResourceManager(this);
public final ModContent OURCRAFT = new ModContent("ourcraft",this).addClassLoader(new URLClassLoader(new URL[]{Ourcraft.class.getProtectionDomain().getCodeSource().getLocation()})).addMainClass(Ourcraft.class);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/dev/hilligans/ourcraft/item/Item.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class Item implements IRecipeComponent, IRegistryElement {
public Item(String name, ItemProperties itemProperties) {
this.name = name;
this.itemProperties = itemProperties;
this.modID = Ourcraft.GAME_INSTANCE.MOD_LOADER.mod;
// this.modID = Ourcraft.GAME_INSTANCE.MOD_LOADER.mod;
id = Items.getNextId();
}

Expand Down
191 changes: 0 additions & 191 deletions src/main/java/dev/hilligans/ourcraft/mod/handler/ModLoader.java

This file was deleted.

Loading

0 comments on commit 13ffa5f

Please sign in to comment.