mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2024-11-28 12:56:50 +01:00
simplify convertItemStack
This commit is contained in:
parent
58dd7f698e
commit
707b1ab474
@ -1100,9 +1100,7 @@ public class ItemBuilder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static ItemBuilder convertItemStack(String item) {
|
public static ItemBuilder convertItemStack(String item) {
|
||||||
ItemStack itemStack = Methods.fromBase64(item);
|
return new ItemBuilder(Methods.fromBase64(item));
|
||||||
|
|
||||||
return new ItemBuilder(itemStack).setAmount(itemStack.getAmount()).setEnchantments(new HashMap<>(itemStack.getEnchantments()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ItemBuilder convertItemStack(ItemStack item, Player player) {
|
public static ItemBuilder convertItemStack(ItemStack item, Player player) {
|
||||||
|
Loading…
Reference in New Issue
Block a user