Skip to content

Commit 2aed453

Browse files
Update to 1.19.3 and fix #11
1 parent 9b18107 commit 2aed453

File tree

5 files changed

+21
-16
lines changed

5 files changed

+21
-16
lines changed

build.gradle

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ java {
4242
}
4343

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

4747
import com.modrinth.minotaur.dependencies.ModDependency
4848
modrinth {
@@ -54,7 +54,7 @@ modrinth {
5454
versionType = "beta"
5555
changelog
5656
loaders = ["fabric", "quilt"]
57-
gameVersions = [project.minecraft_version]
57+
gameVersions = ["1.19", "1.19.1", "1.19.2", "1.19.3"]
5858
syncBodyFrom = rootProject.file("README.md").text
5959
// Required dependency Fabric API
6060
dependencies = [new ModDependency("P7dR8mSH", "required")]
@@ -65,7 +65,10 @@ curseforge {
6565
project {
6666
id = "611998"
6767
releaseType = "beta"
68-
addGameVersion(project.minecraft_version)
68+
addGameVersion("1.19")
69+
addGameVersion("1.19.1")
70+
addGameVersion("1.19.2")
71+
addGameVersion("1.19.3")
6972
addGameVersion("Fabric")
7073
addGameVersion("Quilt")
7174
mainArtifact(remapJar) {

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.2
5-
yarn_mappings=1.19.2+build.28
6-
loader_version=0.14.10
7-
fabric_version=0.67.1+1.19.2
4+
minecraft_version=1.19.3
5+
yarn_mappings=1.19.3+build.2
6+
loader_version=0.14.11
7+
fabric_version=0.68.1+1.19.3
88

99
# Mod Properties
10-
mod_version=0.1.3
10+
mod_version=0.1.4
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 & 6 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);
21+
private boolean isLeavesBlock() {
22+
return this.getClass().equals(LeavesBlock.class);
2323
}
2424

2525
// Add the snowiness property to leaf blocks
2626
@Inject(method = "appendProperties", at = @At("TAIL"))
2727
private void appendPropertiesInject(StateManager.Builder<Block, BlockState> builder, CallbackInfo ci) {
28-
if (runCheck()) return;
28+
if (!isLeavesBlock()) return;
2929
builder.add(SNOWINESS);
3030
}
3131

3232
// Set the default snowiness to none
3333
@Inject(method = "<init>", at = @At("TAIL"))
3434
private void initInject(AbstractBlock.Settings settings, CallbackInfo ci) {
35-
if (runCheck()) return;
35+
if (!isLeavesBlock()) return;
3636
((BlockInvoker) this)
3737
.invokeSetDefaultState(
3838
((LeavesBlock)(Object) this)
@@ -46,7 +46,9 @@ 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 (runCheck()) cir.setReturnValue(true);
49+
if (isLeavesBlock()) {
50+
cir.setReturnValue(true);
51+
}
5052
}
5153

5254
@Inject(method = "randomTick", at = @At("HEAD"))
@@ -57,7 +59,7 @@ private void randomTickInject(
5759
Random random,
5860
CallbackInfo ci
5961
) {
60-
if (runCheck()) return;
62+
if (!isLeavesBlock()) return;
6163
Snowiness currentSnowiness = state.get(SNOWINESS);
6264
if (
6365
// 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.2"
25+
"minecraft": "~1.19"
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.2"
15+
"versions": "~1.19"
1616
}
1717
],
1818
"intermediate_mappings": "net.fabricmc:intermediary",

0 commit comments

Comments
 (0)