From c6f76f77844f088a4a3c2b247861c4600120c53f Mon Sep 17 00:00:00 2001 From: Guillaume Mercier Date: Fri, 29 Dec 2023 05:44:56 -0500 Subject: [PATCH] Fix incorrect cactus drop. (#64) I flipped the drop behaviour of the cactus crop accidentally during a previous commit, this commit fixes this issue. https://github.com/GTNewHorizons/Crops-plus-plus/blame/533943db32644df234e32f70d530df31abfa9232/src/main/java/com/github/bartimaeusnek/cropspp/crops/cpp/CactiCrop.java#L54C11-L54C11 --- .../com/github/bartimaeusnek/cropspp/crops/cpp/CactiCrop.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/github/bartimaeusnek/cropspp/crops/cpp/CactiCrop.java b/src/main/java/com/github/bartimaeusnek/cropspp/crops/cpp/CactiCrop.java index ba48cdc..0285e92 100644 --- a/src/main/java/com/github/bartimaeusnek/cropspp/crops/cpp/CactiCrop.java +++ b/src/main/java/com/github/bartimaeusnek/cropspp/crops/cpp/CactiCrop.java @@ -52,7 +52,7 @@ public int weightInfluences(ICropTile crop, float humidity, float nutrients, flo @Override public ItemStack getGain(ICropTile crop) { - if (BiomesOPlenty.isModLoaded() && crop.getSize() >= this.maxSize() - 1) + if (BiomesOPlenty.isModLoaded() && crop.getSize() == this.maxSize() - 1) return new ItemStack(BOPCBlocks.plants, 1, 12); else return new ItemStack(Item.getItemById(81), 1, 0); }