mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2026-01-06 15:51:52 +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));
|
world.removeBlockState(pos3.add(0,1,0));
|
||||||
BukkitCustomCropsPlugin.getInstance().getItemManager().remove(upperLocation, ExistenceForm.ANY);
|
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);
|
context.arg(ContextKeys.LOCATION, location);
|
||||||
ActionManager.trigger(context, config.breakActions());
|
ActionManager.trigger(context, config.breakActions());
|
||||||
|
|||||||
Reference in New Issue
Block a user