Skip to content
Merged

Dev #14

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,15 @@ public static List<ItemStack> checkReplant(Level level, BlockPos pos, @Nullable

var ctx = Harvestable.Context.of(level, pos, player);

List<ItemStack> 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) {
Expand Down
Loading