Skip to content

Commit 9b18107

Browse files
Update to 1.19.2
1 parent d49c0e9 commit 9b18107

File tree

6 files changed

+24
-29
lines changed

6 files changed

+24
-29
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
<img width="250" src="https://cdn.modrinth.com/data/of7wIinq/b7e6318e3f2e84fb2fc85c08ba24f37b1d59d79f.jpeg" align="right">
1+
<img width="250" src="https://cdn.modrinth.com/data/of7wIinq/b7e6318e3f2e84fb2fc85c08ba24f37b1d59d79f.jpeg" align="right" style="border-radius: 10px">
22

33
# SnowyLeavesPlus
44

5-
In Bedrock Edition, leaves turn white when it is snowing.
5+
In Bedrock Edition, leaves slowly turn white when it is snowing.
66
SnowyLeavesPlus brings this feature to Java Edition!
77
When it is snowing, leaves will slowly turn white, and when it is not, they will turn back to normal.
88

99
## Installation
1010

11-
You can install SnowyLeavesPlus by [downloading](https://modrinth.com/mod/snowyleavesplus) it and [Fabric API](https://modrinth.com/mod/fabric-api).
12-
Then put the mod jars in your `mods` folder and load Minecraft using [Fabric](https://fabricmc.net/use/installer/) or [Quilt](https://quiltmc.org/install/).
13-
You can also use a mod manager like [GDLauncher](https://gdevs.io/), [PolyMC](https://polymc.org/), or my own [Ferium](https://github.com/gorilla-devs/ferium).
11+
You can install SnowyLeavesPlus by downloading it and Fabric API from [Modrinth](https://modrinth.com/mod/snowyleavesplus), [CurseForge](https://www.curseforge.com/minecraft/mc-mods/snowyleavesplus) or [GitHub Releases](https://github.com/theRookieCoder/SnowyLeavesPlus/releases).
12+
You can also use a mod manager like [GDLauncher](https://gdlauncher.com/), [Prism Launcher](https://prismlauncher.org/), or my own [Ferium](https://github.com/gorilla-devs/ferium).
13+
Put the mod files in your `mods` folder, and load Minecraft using [Fabric](https://fabricmc.net/use/installer/) or [Quilt](https://quiltmc.org/install/).
1414

1515
## Compiling from Source
1616

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
2-
id 'fabric-loom' version '0.12-SNAPSHOT'
3-
id 'com.modrinth.minotaur' version '2.3.+'
2+
id 'fabric-loom' version '1.0-SNAPSHOT'
3+
id 'com.modrinth.minotaur' version '2.4.+'
44
id 'com.matthewprenger.cursegradle' version '1.4.+'
55
}
66

@@ -42,7 +42,7 @@ java {
4242
}
4343

4444
// TODO: Update this every release
45-
def changelog = "Update to 1.19"
45+
def changelog = "Update to 1.19.2"
4646

4747
import com.modrinth.minotaur.dependencies.ModDependency
4848
modrinth {
@@ -56,7 +56,7 @@ modrinth {
5656
loaders = ["fabric", "quilt"]
5757
gameVersions = [project.minecraft_version]
5858
syncBodyFrom = rootProject.file("README.md").text
59-
// Required dependency, Fabric API
59+
// Required dependency Fabric API
6060
dependencies = [new ModDependency("P7dR8mSH", "required")]
6161
}
6262

gradle.properties

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
org.gradle.jvmargs=-Xmx2G
22

33
# Fabric Properties (https://fabricmc.net/develop)
4-
minecraft_version=1.19
5-
yarn_mappings=1.19+build.4
6-
loader_version=0.14.8
7-
fabric_version=0.56.0+1.19
4+
minecraft_version=1.19.2
5+
yarn_mappings=1.19.2+build.28
6+
loader_version=0.14.10
7+
fabric_version=0.67.1+1.19.2
88

99
# Mod Properties
10-
mod_version=0.1.2
10+
mod_version=0.1.3
1111
maven_group=io.github.therookiecoder
1212
archives_base_name=snowyleavesplus

src/main/java/io/github/therookiecoder/snowyleavesplus/mixin/LeavesBlockMixin.java

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@
1818

1919
@Mixin(LeavesBlock.class)
2020
public class LeavesBlockMixin {
21+
private boolean runCheck() {
22+
return !this.getClass().equals(LeavesBlock.class);
23+
}
24+
2125
// Add the snowiness property to leaf blocks
2226
@Inject(method = "appendProperties", at = @At("TAIL"))
2327
private void appendPropertiesInject(StateManager.Builder<Block, BlockState> builder, CallbackInfo ci) {
24-
if (!this.getClass().equals(LeavesBlock.class)) {
25-
return;
26-
}
28+
if (runCheck()) return;
2729
builder.add(SNOWINESS);
2830
}
2931

3032
// Set the default snowiness to none
3133
@Inject(method = "<init>", at = @At("TAIL"))
3234
private void initInject(AbstractBlock.Settings settings, CallbackInfo ci) {
33-
if (!this.getClass().equals(LeavesBlock.class)) {
34-
return;
35-
}
35+
if (runCheck()) return;
3636
((BlockInvoker) this)
3737
.invokeSetDefaultState(
3838
((LeavesBlock)(Object) this)
@@ -46,10 +46,7 @@ private void initInject(AbstractBlock.Settings settings, CallbackInfo ci) {
4646
// Always randomly tick leaf blocks
4747
@Inject(method = "hasRandomTicks", at = @At("RETURN"), cancellable = true)
4848
private void hasRandomTicksInject(BlockState state, CallbackInfoReturnable<Boolean> cir) {
49-
if (!this.getClass().equals(LeavesBlock.class)) {
50-
return;
51-
}
52-
cir.setReturnValue(true);
49+
if (runCheck()) cir.setReturnValue(true);
5350
}
5451

5552
@Inject(method = "randomTick", at = @At("HEAD"))
@@ -60,9 +57,7 @@ private void randomTickInject(
6057
Random random,
6158
CallbackInfo ci
6259
) {
63-
if (!this.getClass().equals(LeavesBlock.class)) {
64-
return;
65-
}
60+
if (runCheck()) return;
6661
Snowiness currentSnowiness = state.get(SNOWINESS);
6762
if (
6863
// If it's snowing

src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
"depends": {
2323
"fabricloader": "*",
2424
"fabric": "*",
25-
"minecraft": "1.19"
25+
"minecraft": "1.19.2"
2626
}
2727
}

src/main/resources/quilt.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"fabric",
1313
{
1414
"id": "minecraft",
15-
"versions": "1.19"
15+
"versions": "1.19.2"
1616
}
1717
],
1818
"intermediate_mappings": "net.fabricmc:intermediary",

0 commit comments

Comments
 (0)