mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-23 08:59:28 +00:00
fix dispenser
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user