Skip to content

Commit

Permalink
Use isEnabled flag (Et Futurum) (#60)
Browse files Browse the repository at this point in the history
* Update EtFuturum.java

* spotlessApply (#61)

Co-authored-by: GitHub GTNH Actions <>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
kuba6000 and github-actions[bot] authored Nov 24, 2023
1 parent 3f9e869 commit c55c098
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

import ganymedes01.etfuturum.ModBlocks;
import ganymedes01.etfuturum.ModItems;
import ganymedes01.etfuturum.configuration.configs.ConfigBlocksItems;
import ganymedes01.etfuturum.configuration.configs.ConfigFunctions;

public class EtFuturum implements IExtraLoader {
Expand All @@ -50,7 +49,8 @@ else if (recipe.entity.getClass() == EntitySkeleton.class
}

// mutton
if (ConfigBlocksItems.enableMutton && recipe.entity instanceof EntitySheep) {
if (ModItems.MUTTON_RAW.isEnabled() && ModItems.MUTTON_COOKED.isEnabled()
&& recipe.entity instanceof EntitySheep) {
MobDrop drop = new MobDrop(
new ItemStack(ModItems.MUTTON_RAW.get()),
MobDrop.DropType.Normal,
Expand All @@ -64,7 +64,7 @@ else if (recipe.entity.getClass() == EntitySkeleton.class
}

// wither rose
if (ConfigBlocksItems.enableWitherRose) {
if (ModBlocks.WITHER_ROSE.isEnabled()) {
MobDrop drop = new MobDrop(
ModBlocks.WITHER_ROSE.newItemStack(1, 0),
MobDrop.DropType.Additional,
Expand Down

0 comments on commit c55c098

Please sign in to comment.