Feature request: work with the ElementalCraft "sweet shrine" with nectar upgrade
andrewjbennett opened this issue · 1 comments
The mod ElementalCraft has "shrines" which provide some effect over an area; it includes the "sweet shrine" which will feed players, which can be upgraded with a "nectar upgrade" to instead feed bees.
In my experiments, it will feed vanilla bees, but not productive bees.
This is the relevant code (source):
getEntities(Bee.class).forEach(e -> {
if (this.elementStorage.getElementAmount() >= consumeAmount) {
this.consumeElement(consumeAmount);
e.setHasNectar(true);
}
}
I'm not an expert at Java, I would've thought that your public class ProductiveBee extends Bee
(source) would be sufficient for this to include your bees, but in my experiments it hasn't.
It does seem to be triggering the codepath (because it's consuming elements), but the bees don't get pollinated.
I have two questions:
-
Based on the snippets of code here, should this be working on your bees? (i.e. is this a bug with ElementalCraft)
-
If not, is there something that can be changed with the productive bees to allow them to work with the shrines, or would this need to be a feature request for ElementalCraft?