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:
parent
a000c92d93
commit
61224ec686
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user