Skip to content

Commit 5219e99

Browse files
committed
v0.1.2
1 parent eede25c commit 5219e99

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
modid=mmcutils
33
modname=MMCUtils
4-
modversion=0.1.1
4+
modversion=0.1.2
55
modgroup=me.redth
66

77
org.gradle.jvmargs=-Xmx2G

src/main/java/me/redth/mmcutils/Config.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public class Config extends Vigilant {
2222
@Property(type = PropertyType.SWITCH, name = "Height Limit Overlay", category = "General", description = "Make wools and terracottas darker at height limit.")
2323
public static boolean heightLimitOverlay = true;
2424

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

2828
public Config() {
2929
super(new File("./config/mmcutils.toml"));

src/main/java/me/redth/mmcutils/MMCUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import net.minecraftforge.fml.common.gameevent.TickEvent;
1212
import net.minecraftforge.fml.common.network.FMLNetworkEvent;
1313

14-
@Mod(modid = "mmcutils", name = "MMCUtils", version = "0.1.1", clientSideOnly = true, acceptedMinecraftVersions = "1.8.9", dependencies = "patcher")
14+
@Mod(modid = "mmcutils", name = "MMCUtils", version = "0.1.2", clientSideOnly = true, acceptedMinecraftVersions = "1.8.9", dependencies = "patcher")
1515
public class MMCUtils {
1616
private static final Minecraft mc = Minecraft.getMinecraft();
1717
public static final ImmutableList<String> ALL_PROXY = ImmutableList.of("AS Practice", "EU Practice", "NA Practice", "SA Practice");

src/main/java/me/redth/mmcutils/mixin/BlockModelRendererMixin.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ public void modifyArgs(WorldRenderer instance, float l, float i1, float j1, int
1919
if (MMCUtils.inMMC && Config.heightLimitOverlay && blockPosIn.getY() == 99 && stateIn.getBlock() instanceof BlockColored) {
2020
int meta = stateIn.getValue(BlockColored.COLOR).getMetadata();
2121
if (meta == 14 || meta == 11) {
22-
l *= Config.heightLimitBrightness;
23-
i1 *= Config.heightLimitBrightness;
24-
j1 *= Config.heightLimitBrightness;
22+
float f = 1F- Config.heightLimitDarkness;
23+
l *= f;
24+
i1 *= f;
25+
j1 *= f;
2526
}
2627
}
2728

src/main/resources/mcmod.info

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
{
33
"modid": "${modid}}",
44
"name": "${name}",
5-
"description": "MMCUtils :DDDDDDDDD",
5+
"description": "Utilities for Minemen Club",
66
"version": "${version}",
77
"mcversion": "${mcversion}",
8+
"url": "https://github.com/RedthMC/MMCUtils",
89
"authorList": [
910
"Redth"
1011
],

0 commit comments

Comments
 (0)