Skip to content

Commit

Permalink
Bump to 1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
flier268 committed Dec 17, 2023
1 parent 89d9780 commit c16d97e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
cloth_config_version=13.0.114
# https://modrinth.com/mod/modmenu/versions
modmenu_version=9.0.0-pre.1
4 changes: 2 additions & 2 deletions src/main/java/com/flier268/autoharvest/CropManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/flier268/autoharvest/TickListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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;
Expand Down

0 comments on commit c16d97e

Please sign in to comment.