Skip to content

Commit

Permalink
v0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
RedthMC committed Nov 5, 2022
1 parent eede25c commit 5219e99
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

modid=mmcutils
modname=MMCUtils
modversion=0.1.1
modversion=0.1.2
modgroup=me.redth

org.gradle.jvmargs=-Xmx2G
4 changes: 2 additions & 2 deletions src/main/java/me/redth/mmcutils/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public class Config extends Vigilant {
@Property(type = PropertyType.SWITCH, name = "Height Limit Overlay", category = "General", description = "Make wools and terracottas darker at height limit.")
public static boolean heightLimitOverlay = true;

@Property(type = PropertyType.PERCENT_SLIDER, name = "Height Limit Brightness", category = "General", description = "Adjust the brightness of height limit overlay.")
public static float heightLimitBrightness = 0.5F;
@Property(type = PropertyType.PERCENT_SLIDER, name = "Height Limit Darkness", category = "General", description = "Adjust the darkness of height limit overlay.")
public static float heightLimitDarkness = 0.5F;

public Config() {
super(new File("./config/mmcutils.toml"));
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/me/redth/mmcutils/MMCUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import net.minecraftforge.fml.common.gameevent.TickEvent;
import net.minecraftforge.fml.common.network.FMLNetworkEvent;

@Mod(modid = "mmcutils", name = "MMCUtils", version = "0.1.1", clientSideOnly = true, acceptedMinecraftVersions = "1.8.9", dependencies = "patcher")
@Mod(modid = "mmcutils", name = "MMCUtils", version = "0.1.2", clientSideOnly = true, acceptedMinecraftVersions = "1.8.9", dependencies = "patcher")
public class MMCUtils {
private static final Minecraft mc = Minecraft.getMinecraft();
public static final ImmutableList<String> ALL_PROXY = ImmutableList.of("AS Practice", "EU Practice", "NA Practice", "SA Practice");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ public void modifyArgs(WorldRenderer instance, float l, float i1, float j1, int
if (MMCUtils.inMMC && Config.heightLimitOverlay && blockPosIn.getY() == 99 && stateIn.getBlock() instanceof BlockColored) {
int meta = stateIn.getValue(BlockColored.COLOR).getMetadata();
if (meta == 14 || meta == 11) {
l *= Config.heightLimitBrightness;
i1 *= Config.heightLimitBrightness;
j1 *= Config.heightLimitBrightness;
float f = 1F- Config.heightLimitDarkness;
l *= f;
i1 *= f;
j1 *= f;
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/mcmod.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
{
"modid": "${modid}}",
"name": "${name}",
"description": "MMCUtils :DDDDDDDDD",
"description": "Utilities for Minemen Club",
"version": "${version}",
"mcversion": "${mcversion}",
"url": "https://github.com/RedthMC/MMCUtils",
"authorList": [
"Redth"
],
Expand Down

0 comments on commit 5219e99

Please sign in to comment.