diff --git a/gradle.properties b/gradle.properties index 8bc29eb..e20dce0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -12,7 +12,7 @@ neo_version=26.1.2.75 mod_id=cakesticklib mod_name=CakeStickLib mod_license=Ora Et Labora License -mod_version=1.11.1 +mod_version=1.11.1-hotfix1 mod_group_id=com.devdyna.cakestick mod_authors=DevDyna mod_description=A standalone port of Synergy API to unify most of the code diff --git a/src/main/java/com/devdyna/cakesticklib/api/factories/plants/VanillaPlants.java b/src/main/java/com/devdyna/cakesticklib/api/factories/plants/VanillaPlants.java index 7a08fba..c1393c5 100644 --- a/src/main/java/com/devdyna/cakesticklib/api/factories/plants/VanillaPlants.java +++ b/src/main/java/com/devdyna/cakesticklib/api/factories/plants/VanillaPlants.java @@ -83,12 +83,15 @@ public static List checkReplant(Level level, BlockPos pos, @Nullable var ctx = Harvestable.Context.of(level, pos, player); + List items = null; + if (harvestable.canHarvest(ctx)) { - var items = harvestable.getItemsResult(ctx);// required to prevent to harvest AIR + items = harvestable.getItemsResult(ctx);// required to prevent to harvest AIR harvestable.replant(ctx); - return items; } + return items; + } if (block instanceof CropBlock crop) {