Skip to content

Commit

Permalink
fix: Arcane Anvil cannot receive Crystal Silver Ingots to turn into C…
Browse files Browse the repository at this point in the history
…rystal Silver Plating. Fixes #237
  • Loading branch information
WinDanesz committed Jan 27, 2024
1 parent 9e66903 commit ab64bc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public boolean isItemValid(ItemStack stack) {
stack.getItem() == ASItems.battlemage_sword_novice ||
stack.getItem() == ASItems.battlemage_sword_apprentice ||
stack.getItem() == ASItems.battlemage_sword_advanced ||
stack.getItem() == ASItems.crystal_silver_ingot ||
!stack.getAttributeModifiers(EntityEquipmentSlot.MAINHAND).isEmpty()) {
return true;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ public boolean isItemValidForSlot(int slotNumber, ItemStack stack) {
stack.getItem() == ASItems.battlemage_sword_novice ||
stack.getItem() == ASItems.battlemage_sword_apprentice ||
stack.getItem() == ASItems.battlemage_sword_advanced ||
stack.getItem() == ASItems.crystal_silver_ingot ||

!stack.getAttributeModifiers(EntityEquipmentSlot.MAINHAND).isEmpty()
) {
Expand Down

0 comments on commit ab64bc7

Please sign in to comment.