Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mod_version=5.0.
mod_version=5.1.
mod_group=net.darkhax.eplus
mod_name=EnchantingPlus
mod_name=EnchantingPlusPlus
mod_class=EnchantingPlus

version_minecraft=1.12.2
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/net/darkhax/eplus/EnchLogic.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ public static List<Enchantment> getValidEnchantments (ItemStack stack, World wor
continue;
}

if (!enchantment.isTreasureEnchantment() || isCurse(world, enchantment) || isTreasuresAvailable(enchantment, world, pos, pos.down())) {

if (isCurse(world, enchantment) || isTreasuresAvailable(enchantment, world, pos, pos.down())) {
enchList.add(enchantment);
} else if (!enchantment.isTreasureEnchantment() && !enchantment.isCurse()) {
enchList.add(enchantment);
}
}
Expand Down Expand Up @@ -94,7 +95,6 @@ public static boolean isTreasuresAvailable(Enchantment enchantment, World world,
final Block block = world.getBlockState(currentPos).getBlock();

if (!block.isBeaconBase(world, currentPos, pos)) {

return false;
}
}
Expand Down