Skip to content

Commit

Permalink
Update to 1.20.
Browse files Browse the repository at this point in the history
  • Loading branch information
gniftygnome committed Oct 29, 2023
1 parent dddf9c2 commit c86ffab
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '1.0.7'
id 'fabric-loom' version '1.3.+'
id 'maven-publish'
}

Expand Down
14 changes: 7 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://fabricmc.net/use
minecraft_version=1.19.2
yarn_mappings=1.19.2+build.11
loader_version=0.14.9
minecraft_version=1.20.1
yarn_mappings=1.20.1+build.10
loader_version=0.14.22

# Mod Properties
mod_version = 1.5.0
mod_version = 1.6.0
maven_group = leaf-decay
archives_base_name = leaf-decay

# Dependencies
fabric_version=0.60.0+1.19.2
cloth_config_version = 7.0.72
mod_menu_version = 4.0.0
fabric_version=0.90.4+1.20.1
cloth_config_version = 11.1.106
mod_menu_version = 7.2.2
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
4 changes: 3 additions & 1 deletion src/main/java/draylar/leafdecay/mixin/LogBreakMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
import draylar.leafdecay.scheduler.LeafBreakHandler;
import net.minecraft.block.*;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.registry.tag.BlockTags;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.sound.BlockSoundGroup;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import org.spongepowered.asm.mixin.Mixin;
Expand All @@ -20,7 +22,7 @@ public class LogBreakMixin {
at = @At("TAIL")
)
private void afterBreak(World world, BlockPos pos, BlockState state, PlayerEntity player, CallbackInfo info) {
if (!world.isClient && (state.getBlock() instanceof PillarBlock) && state.getMaterial().equals(Material.WOOD)) {
if (!world.isClient && (state.getBlock() instanceof PillarBlock) && state.isIn(BlockTags.LOGS)) {
BlockPos upPosition = pos.up();
BlockState upState = world.getBlockState(upPosition);

Expand Down
5 changes: 2 additions & 3 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

{
"schemaVersion": 1,
"id": "leaf-decay",
Expand Down Expand Up @@ -29,7 +28,7 @@
],

"depends": {
"fabricloader": ">=0.7.0",
"fabric": ">=0.14.0"
"fabricloader": ">=0.13.3",
"fabric-api": "*"
}
}

0 comments on commit c86ffab

Please sign in to comment.