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:
@@ -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())) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user