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

Fix whitelist pots

This commit is contained in:
XiaoMoMi
2024-10-01 04:47:21 +08:00
parent b8f3ed07de
commit a2660648c7
2 changed files with 1 additions and 1 deletions

View File

@@ -72,6 +72,7 @@ public class SeedItem extends AbstractCustomCropsItem {
// check pot whitelist
if (!cropConfig.potWhitelist().contains(potConfig.id())) {
ActionManager.trigger(context, cropConfig.wrongPotActions());
return InteractionResult.COMPLETE;
}
// check plant requirements
if (!RequirementManager.isSatisfied(context, cropConfig.plantRequirements())) {

View File

@@ -129,7 +129,6 @@ public abstract class AbstractWorldAdaptor<W> implements WorldAdaptor<W> {
}
private int[] queueToIntArray(PriorityBlockingQueue<DelayedTickTask> queue) {
queue.removeIf(Objects::isNull);
int size = queue.size() * 2;
int[] tasks = new int[size];
int i = 0;