diff --git a/gradle.properties b/gradle.properties index 01f333c..8b1004a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,12 +2,12 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://fabricmc.net/versions.html -minecraft_version=1.19.4 -yarn_mappings=1.19.4+build.2 +minecraft_version=1.20.4 +yarn_mappings=1.20.4+build.3 loader_version=0.15.2 #Fabric api -fabric_version=0.87.2+1.19.4 +fabric_version=0.91.2+1.20.4 loom_version=1.4-SNAPSHOT @@ -16,6 +16,6 @@ mod_version=1.19.0 maven_group=com.flier268.autoharvest archives_base_name=AutoHarvest # https://www.curseforge.com/minecraft/mc-mods/cloth-config/files -cloth_config_version=7.0.72 -# https://www.curseforge.com/minecraft/mc-mods/modmenu/files -modmenu_version=4.0.0 \ No newline at end of file +cloth_config_version=13.0.114 +# https://modrinth.com/mod/modmenu/versions +modmenu_version=9.0.0-pre.1 \ No newline at end of file diff --git a/src/main/java/com/flier268/autoharvest/CropManager.java b/src/main/java/com/flier268/autoharvest/CropManager.java index 7176c70..1202ff8 100644 --- a/src/main/java/com/flier268/autoharvest/CropManager.java +++ b/src/main/java/com/flier268/autoharvest/CropManager.java @@ -34,7 +34,7 @@ public class CropManager { add(Blocks.ACACIA_SAPLING); add(Blocks.DARK_OAK_SAPLING); add(Blocks.FERN); - add(Blocks.GRASS); + add(Blocks.SHORT_GRASS); add(Blocks.DEAD_BUSH); add(Blocks.BROWN_MUSHROOM); add(Blocks.RED_MUSHROOM); @@ -84,7 +84,7 @@ public class CropManager { put(Blocks.MELON_STEM, Items.MELON_SEEDS); put(Blocks.PUMPKIN_STEM, Items.PUMPKIN_SEEDS); put(Blocks.SUGAR_CANE, Items.SUGAR_CANE); - put(Blocks.GRASS, Items.GRASS); + put(Blocks.SHORT_GRASS, Items.SHORT_GRASS); put(Blocks.BAMBOO, Items.BAMBOO); // 1.16 put(Blocks.CRIMSON_FUNGUS, Items.CRIMSON_FUNGUS); diff --git a/src/main/java/com/flier268/autoharvest/TickListener.java b/src/main/java/com/flier268/autoharvest/TickListener.java index 20b7204..b60794b 100644 --- a/src/main/java/com/flier268/autoharvest/TickListener.java +++ b/src/main/java/com/flier268/autoharvest/TickListener.java @@ -402,7 +402,6 @@ private void bonemealingTick() { } else { handItem = tryFillItemInHand(); } - World w = p.getEntityWorld(); int X = (int) Math.floor(p.getX()); int Y = (int) Math.floor(p.getY());// the "leg block" @@ -414,7 +413,7 @@ private void bonemealingTick() { BlockState blockState = w.getBlockState(pos); Block block = blockState.getBlock(); if (block instanceof Fertilizable) { - if (((Fertilizable) block).isFertilizable(w, pos, blockState, w.isClient)) { + if (((Fertilizable) block).isFertilizable(w, pos, blockState)) { BlockHitResult blockHitResult = new BlockHitResult( new Vec3d(X + deltaX + 0.5, Y, Z + deltaZ + 0.5), Direction.UP, pos, false); assert handItem != null;