Skip to content

Commit

Permalink
fix: stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Zepalesque committed Jun 15, 2024
1 parent a2f5e63 commit 5211cb2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package net.zepalesque.redux.data.gen;

import net.minecraft.core.Holder;
import net.minecraft.core.HolderLookup;
import net.minecraft.data.PackOutput;
import net.minecraft.world.item.ItemStack;
Expand All @@ -12,11 +13,13 @@
import net.minecraft.world.level.storage.loot.providers.number.ConstantValue;
import net.zepalesque.redux.Redux;
import net.zepalesque.redux.block.ReduxBlocks;
import net.zepalesque.redux.config.ReduxConfig;
import net.zepalesque.redux.data.prov.ReduxLootModifierProvider;
import net.zepalesque.redux.data.resource.registries.ReduxConditions;
import net.zepalesque.redux.item.ReduxItems;
import net.zepalesque.redux.loot.modifer.RawOreModifier;
import net.zepalesque.zenith.Zenith;
import net.zepalesque.zenith.api.condition.ConfigCondition;
import net.zepalesque.zenith.loot.condition.ConditionLootModule;

import java.util.concurrent.CompletableFuture;
Expand All @@ -34,7 +37,8 @@ protected void withHolderLookups(HolderLookup.Provider provider) {
ApplyBonusCount.addOreBonusCount(Enchantments.BLOCK_FORTUNE).build()
},
new LootItemCondition[] {
new ConditionLootModule(provider.lookupOrThrow(Zenith.Keys.CONDITION).getOrThrow(ReduxConditions.RAW_ORES)),
// It appears that LootModifierManager is being a bit buggy, so just use a direct inline holder instead of the key
new ConditionLootModule(Holder.direct(new ConfigCondition("redux_server", ReduxConfig.SERVER.raw_ores))),
HAS_SILK_TOUCH.invert().build(),
LootItemBlockStatePropertyCondition.hasBlockStateProperties(ReduxBlocks.VERIDIUM_ORE.get()).build()}));

Expand Down

0 comments on commit 5211cb2

Please sign in to comment.