Skip to content

Commit

Permalink
update MockBukkit to 4.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrea committed Nov 24, 2024
1 parent f5d6072 commit 71dd823
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 60 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ dependencies {
implementation(kotlin("stdlib"))

// Test dependency
testImplementation("org.mockbukkit.mockbukkit:mockbukkit-v1.21:4.3.1")
testImplementation("org.mockbukkit.mockbukkit:mockbukkit-v1.21:4.5.0")
testRuntimeOnly("commons-lang:commons-lang:2.6")
}

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import xyz.alexcrea.cuanvil.enchant.CAEnchantment;
import xyz.alexcrea.cuanvil.listener.PrepareAnvilListener;
import xyz.alexcrea.cuanvil.mock.AnvilViewMock;
import xyz.alexcrea.cuanvil.mock.EnchantedItemStackMock;

import java.util.ArrayList;
import java.util.HashMap;
Expand All @@ -39,7 +38,7 @@ public static ItemStack prepareItem(@NotNull Material material,
enchantmentMap.put(enchantments.get(i), level.get(i));
}

ItemStack item = new EnchantedItemStackMock(material);
ItemStack item = new ItemStack(material);
ItemUtil.INSTANCE.setEnchantmentsUnsafe(item, enchantmentMap);

ItemMeta meta = item.getItemMeta();
Expand Down

0 comments on commit 71dd823

Please sign in to comment.