mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-27 02:49:11 +00:00
Fixed dead crop not removed
This commit is contained in:
@@ -163,6 +163,9 @@ public class PotBlock extends AbstractCustomCropsBlock {
|
||||
world.removeBlockState(pos3.add(0,1,0));
|
||||
BukkitCustomCropsPlugin.getInstance().getItemManager().remove(upperLocation, ExistenceForm.ANY);
|
||||
}
|
||||
if (cropConfig == null && Registries.ITEM_TO_DEAD_CROP.containsKey(upperID)) {
|
||||
BukkitCustomCropsPlugin.getInstance().getItemManager().remove(upperLocation, ExistenceForm.ANY);
|
||||
}
|
||||
|
||||
context.arg(ContextKeys.LOCATION, location);
|
||||
ActionManager.trigger(context, config.breakActions());
|
||||
|
||||
Reference in New Issue
Block a user