-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
214 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
- Refactor configuration by using categories thus making it a bit clearer than having everything stacked up at the same place. (/!\ You may have to redo your configuration if you changed values so back up the configuration before updating in order to copy values after) | ||
- Break leaves without sound when using force breaking leaves (the option with the radius) to avoid breaking your ears (#7) | ||
- Backport to 1.12.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,13 @@ | ||
package fr.raksrinana.fallingtree; | ||
|
||
import fr.raksrinana.fallingtree.config.Config; | ||
import net.minecraftforge.fml.ModContainer; | ||
import net.minecraftforge.fml.ModList; | ||
import net.minecraftforge.fml.ModLoadingContext; | ||
import net.minecraftforge.fml.common.Mod; | ||
import net.minecraftforge.fml.config.ModConfig; | ||
import net.minecraftforge.forgespi.language.IModInfo; | ||
import org.apache.logging.log4j.LogManager; | ||
import org.apache.logging.log4j.Logger; | ||
import org.apache.maven.artifact.versioning.ArtifactVersion; | ||
import javax.annotation.Nonnull; | ||
import java.util.logging.LogManager; | ||
import java.util.logging.Logger; | ||
|
||
@Mod(FallingTree.MOD_ID) | ||
@Mod(modid = FallingTree.MOD_ID, version = FallingTree.VERSION) | ||
public class FallingTree{ | ||
public static final String MOD_ID = "falling_tree"; | ||
public static final String MOD_NAME = "Falling Tree"; | ||
public static final String VERSION = "2.1.0"; | ||
public static final Logger LOGGER = LogManager.getLogger(MOD_ID); | ||
|
||
public FallingTree(){ | ||
ModLoadingContext.get().registerConfig(ModConfig.Type.COMMON, Config.COMMON_SPEC); | ||
} | ||
|
||
@Nonnull | ||
public static String getVersion(){ | ||
return ModList.get().getModContainerById(MOD_ID).map(ModContainer::getModInfo).map(IModInfo::getVersion).map(ArtifactVersion::toString).orElse("NONE"); | ||
} | ||
|
||
public static boolean isDevBuild(){ | ||
return "NONE".equals(getVersion()); | ||
} | ||
public static final Logger LOGGER = LogManager.getLogManager().getLogger(MOD_ID); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
src/main/java/fr/raksrinana/fallingtree/config/Config.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.