9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-23 17:09:21 +00:00

fix dispenser

This commit is contained in:
XiaoMoMi
2025-01-04 02:22:20 +08:00
parent 2627387ede
commit 9e5900766d
2 changed files with 2 additions and 2 deletions

View File

@@ -372,7 +372,7 @@ public abstract class AbstractCustomEventListener implements Listener {
int point = cropBlock.point(state);
if (point < cropConfig.maxPoints()) {
for (BoneMeal boneMeal : cropConfig.boneMeals()) {
if (boneMeal.isDispenserAllowed()) {
if (boneMeal.isDispenserAllowed() && boneMeal.requiredItem().equals(itemID)) {
if (EventUtils.fireAndCheckCancel(new BoneMealDispenseEvent(block, location, state, itemStack, boneMeal))) {
event.setCancelled(true);
return;

View File

@@ -1,6 +1,6 @@
# Project settings
# Rule: [major update].[feature update].[bug fix]
project_version=3.6.25
project_version=3.6.26
config_version=42
project_group=net.momirealms