Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
janhous233 authored Dec 14, 2024
1 parent adddce4 commit 07407bc
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,9 @@ protected SpecialLootModifier(LootItemCondition[] conditions) {

if (OmniconfigHandler.isItemEnabled(EnigmaticItems.ASTRAL_FRUIT))
if ("minecraft:chests/end_city_treasure".equals(String.valueOf(context.getQueriedLootTableId()))) {
if (!SuperpositionHandler.hasPersistentTag(player, "LootedFirstEndCityChest")) {
if (SuperpositionHandler.isTheCursedOne(player) && !SuperpositionHandler.hasPersistentTag(player, "LootedFirstEndCityChest")) {
SuperpositionHandler.setPersistentBoolean(player, "LootedFirstEndCityChest", true);

if (SuperpositionHandler.isTheCursedOne(player)) {
generatedLoot.add(new ItemStack(EnigmaticItems.ASTRAL_FRUIT, 1));
}
generatedLoot.add(new ItemStack(EnigmaticItems.ASTRAL_FRUIT, 1));
}
}

Expand Down

0 comments on commit 07407bc

Please sign in to comment.