Create Slice & Dice

Create Slice & Dice

27M Downloads

Missing "Can be composted" in Attribute Filter for some Farmer's delight food

Closed this issue ยท 2 comments

commented

What happened?

The attribute "can be composted" is missing in Attribute Filters for Farmer's delight items, such as Cabbage seeds. (See example below).

Image

I'm using Smart Chutes on top of composters using this attribute. And it's not working despite those items being actually compostable.

I don't know if this integration is meant to be provided by Slice & Dice, or expected from Farmer's Delight itself, or event Create.

Loader

neoforge

Mod Version

4.0.1

Minecraft Version

1.21

Relevant log output

commented

From what I could see, I believe Create is checking :

public class AllItemAttributeTypes {
...
   COMPOSTABLE = singleton("compostable", s -> ComposterBlock.COMPOSTABLES.containsKey(s.getItem())),

Changing this to :

  COMPOSTABLE = singleton("compostable", s -> ComposterBlock.getValue(s) > 0),

seems to fix the problem.

So bug in Create itself ? Your opinion ?
I've posted just the issue there as well. (If they confirm it's a problem on their side, we can close the issue here).

commented

Fixed planned in Create. Closing the issue here.