Skip to content

Commit

Permalink
fix dupe with drying mats, make firmalife bushes mineable with a scythe
Browse files Browse the repository at this point in the history
  • Loading branch information
eerussianguy committed Sep 23, 2023
1 parent 4d72cda commit 830e3d8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def generate(rm: ResourceManager):
rm.block_tag('drops_ice_shavings', 'minecraft:ice')

rm.block_tag('minecraft:mineable/axe', *['firmalife:plant/%s_branch' % t for t in FRUITS], *['firmalife:plant/%s_growing_branch' % t for t in FRUITS])
rm.block_tag('tfc:mineable_with_sharp_tool', *['firmalife:plant/%s_leaves' % t for t in FRUITS], *['firmalife:plant/%s_sapling' % t for t in FRUITS])
rm.block_tag('tfc:mineable_with_sharp_tool', *['firmalife:plant/%s_leaves' % t for t in FRUITS], *['firmalife:plant/%s_sapling' % t for t in FRUITS], *['firmalife:plant/%s_bush' % b for b in STILL_BUSHES.keys()])
rm.block_tag('tfc:replaceable_plants', *['firmalife:plant/%s' % p for p in HERBS], 'firmalife:plant/butterfly_grass')

rm.entity_tag('drops_rennet', 'tfc:goat', 'tfc:yak')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ public static void serverTick(Level level, BlockPos pos, BlockState state, Dryin

if (mat.cachedRecipe != null)
{
if (mat.getTicksLeft() <= 0)
if (!mat.cachedRecipe.matches(new ItemStackInventory(mat.inventory.getStackInSlot(0)), level))
{
mat.cachedRecipe = null;
mat.resetCounter();
}
else if (mat.getTicksLeft() <= 0)
{
mat.finish();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
"firmalife:plant/cocoa_leaves",
"firmalife:plant/fig_leaves",
"firmalife:plant/cocoa_sapling",
"firmalife:plant/fig_sapling"
"firmalife:plant/fig_sapling",
"firmalife:plant/nightshade_bush",
"firmalife:plant/pineapple_bush"
]
}

0 comments on commit 830e3d8

Please sign in to comment.