Skip to content

Commit

Permalink
- created FileUtils.java
Browse files Browse the repository at this point in the history
- cleanead up resourcepack
- splitted block registration (disabling/enabling works correctly again)
- fixed "Harvestcraft Wild Onion" having no block texture
- updated version
  • Loading branch information
wolfkidsounds committed Jan 24, 2022
1 parent a321633 commit 2ebaf5c
Show file tree
Hide file tree
Showing 11 changed files with 223 additions and 300 deletions.
21 changes: 0 additions & 21 deletions bin/main/META-INF/mods.toml

This file was deleted.

89 changes: 0 additions & 89 deletions bin/main/assets/wildplants/lang/en_us.json

This file was deleted.

7 changes: 0 additions & 7 deletions bin/main/pack.mcmeta

This file was deleted.

2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ buildscript {
apply plugin: 'net.minecraftforge.gradle'

group = 'wks.wolfkidsounds'
version = '1.16.5_forge_2.1.4'
version = '1.16.5_2.1.5_forge'

java {
archivesBaseName = 'wildplants'
Expand Down
9 changes: 4 additions & 5 deletions src/main/java/wks/wolfkidsounds/wildplants/Wildplants.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import wks.wolfkidsounds.wildplants.config.features.WildplantsFeaturesConfig;
import wks.wolfkidsounds.wildplants.items.ModItems;
import wks.wolfkidsounds.wildplants.render.ModRenderers;
import wks.wolfkidsounds.wildplants.utils.FileUtils;

// The value here should match an entry in the META-INF/mods.toml file
@Mod("wildplants")
Expand All @@ -35,11 +36,9 @@ public ItemStack createIcon() {
public Wildplants() {
IEventBus eventBus = FMLJavaModLoadingContext.get().getModEventBus();

ModLoadingContext.get().registerConfig(ModConfig.Type.COMMON,
WildplantsConfig.SPEC, "./wildplants/wildplants-common.toml");

ModLoadingContext.get().registerConfig(ModConfig.Type.COMMON,
WildplantsFeaturesConfig.SPEC, "./wildplants/wildplants-features-common.toml");
FileUtils.createFolders();
ModLoadingContext.get().registerConfig(net.minecraftforge.fml.config.ModConfig.Type.COMMON, WildplantsConfig.SPEC, "wildplants/wildplants-common.toml");
ModLoadingContext.get().registerConfig(net.minecraftforge.fml.config.ModConfig.Type.CLIENT, WildplantsFeaturesConfig.SPEC, "wildplants/settings-common.toml");

ModBlocks.register(eventBus);
ModItems.register(eventBus);
Expand Down
Loading

0 comments on commit 2ebaf5c

Please sign in to comment.