1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Update src/test/java/io/github/thebusybiscuit/slimefun4/testing/tests/items/TestDamageableItem.java

Co-authored-by: J3fftw <44972470+J3fftw1@users.noreply.github.com>
This commit is contained in:
RobotHanzo 2021-04-02 20:57:03 +08:00 committed by GitHub
parent a000c92d93
commit 61224ec686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,8 @@ class TestDamageableItem {
SlimefunItemStack stack = new SlimefunItemStack("DAMAGEABLE_PICKAXE_" + id, SlimefunItemStack stack = new SlimefunItemStack("DAMAGEABLE_PICKAXE_" + id,
Material.DIAMOND_PICKAXE, Material.DIAMOND_PICKAXE,
"&4This pickaxe can break", "&4This pickaxe can break",
"&6It appears, it breaks, but most importantly, it tests."); "&6It appears, it breaks, but most importantly, it tests."
);
if (enchantment != null && enchantmentLevel != null) { if (enchantment != null && enchantmentLevel != null) {
ItemMeta im = stack.getItemMeta(); ItemMeta im = stack.getItemMeta();
im.addEnchant(enchantment, enchantmentLevel, true); im.addEnchant(enchantment, enchantmentLevel, true);