Skip to content

Commit

Permalink
Update src/test/java/io/github/thebusybiscuit/slimefun4/api/events/Te…
Browse files Browse the repository at this point in the history
…stTalismanActivateEvent.java
  • Loading branch information
Sfiguz7 authored Dec 12, 2023
1 parent 8509070 commit 2e16d2b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ public static void unload() {
MockBukkit.unmock();
}

void activateAnvilTalisman(boolean ender) {
void activateAnvilTalisman(boolean enderVariant, boolean inEnderChest) {
player.getInventory().clear();
player.getEnderChest().clear();

ItemStack talismanItem = ender ? enderTalisman.getItem() : talisman.getItem();
ItemStack talismanItem = enderVariant ? enderTalisman.getItem() : talisman.getItem();
ItemStack breakableItem = new ItemStack(Material.IRON_PICKAXE);

if (ender) {
if (inEnderChest) {
player.getEnderChest().addItem(talismanItem);
} else {
player.getInventory().addItem(talismanItem);
Expand Down

0 comments on commit 2e16d2b

Please sign in to comment.