Skip to content

Commit af3e824

Browse files
committed
version update 1.21.5
1 parent c24d3fb commit af3e824

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'fabric-loom' version '1.8-SNAPSHOT'
2+
id 'fabric-loom' version '1.10-SNAPSHOT'
33
id 'maven-publish'
44
}
55

gradle.properties

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
# Done to increase the memory available to gradle.
22
org.gradle.jvmargs=-Xmx1G
33

4+
# https://fabricmc.net/develop/
45
# Fabric Properties
5-
minecraft_version=1.21.4
6-
yarn_mappings=1.21.2+build.1
7-
loader_version=0.16.9
6+
minecraft_version=1.21.5
7+
yarn_mappings=1.21.5+build.1
8+
loader_version=0.16.13
89

910
# Fabric API
10-
fabric_version=0.106.1+1.21.2
11+
fabric_version=0.119.9+1.21.5
1112

1213
# Mod Properties
13-
mod_version = 1.2.2
14+
mod_version = 1.2.3
1415
maven_group = net.just_s
1516
archives_base_name = survival-debug-mod
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

src/main/java/net/just_s/sds/SDSMod.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void onInitialize() {
4949
NbtComponent component = stack.get(DataComponentTypes.CUSTOM_DATA);
5050
if (component != null) {
5151
NbtCompound nbtData = component.copyNbt();
52-
long lastModified = nbtData.getLong("LastModified");
52+
long lastModified = nbtData.getLong("LastModified").orElse(0L);
5353
if (world.getTime() < lastModified + 5) {
5454
return ActionResult.PASS;
5555
}
@@ -62,7 +62,7 @@ public void onInitialize() {
6262
.add(DataComponentTypes.CUSTOM_DATA, NbtComponent.of(newNbtData))
6363
.build()
6464
);
65-
stack.getItem().canMine(world.getBlockState(pos), world, pos, player);
65+
stack.getItem().canMine(stack, world.getBlockState(pos), world, pos, player);
6666
return ActionResult.PASS;
6767
}
6868
);

src/main/java/net/just_s/sds/datagen/SDSRecipeGenerator.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;
44
import net.fabricmc.fabric.api.datagen.v1.provider.FabricRecipeProvider;
5-
import net.just_s.sds.SDSMod;
6-
import net.minecraft.data.server.recipe.RecipeExporter;
7-
import net.minecraft.data.server.recipe.RecipeGenerator;
5+
import net.minecraft.data.recipe.RecipeExporter;
6+
import net.minecraft.data.recipe.RecipeGenerator;
87
import net.minecraft.item.Items;
98
import net.minecraft.recipe.book.RecipeCategory;
109
import net.minecraft.registry.RegistryKey;

0 commit comments

Comments
 (0)