Supplementaries

Supplementaries

82M Downloads

Order of PancakeBlock#getTopping conditions disallows items that extend HoneyBottleItem from being syrup or chocolate

Charnuz opened this issue ยท 1 comments

commented

private Topping getTopping(ItemStack stack) {
Item item = stack.getItem();
if (item instanceof HoneyBottleItem) return BlockProperties.Topping.HONEY;
var tag = Registry.ITEM.getTag(ModTags.CHOCOLATE_BARS);
if ((tag.isEmpty() || tag.get().stream().findAny().isEmpty() && item == Items.COCOA_BEANS) || stack.is(ModTags.CHOCOLATE_BARS)) {
return Topping.CHOCOLATE;
}
if (stack.is(ModTags.SYRUP)) return Topping.SYRUP;
//if(item.isIn(ItemTags.getCollection().get(ResourceLocation.tryCreate("forge:sugar"))))return BlockProperties.Topping.CHOCOLATE;
return Topping.NONE;
}

For example, this affects syrup bottles from thermal foundation

commented

oh good point I hadn't thought of that