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

Did the requested changes vol.4

This commit is contained in:
ajan-12 2019-09-05 20:35:16 +03:00
parent f4da4d2423
commit 05bd9337ab
2 changed files with 2 additions and 1 deletions

View File

@ -601,6 +601,7 @@ public final class SlimefunItems {
imS.setDisplayName(ChatColor.translateAlternateColorCodes('&', "&7Ancient Rune &8&l[&5&lSoulbound&8&l]"));
itemS.setItemMeta(imS);
RUNE_SOULBOUND = itemS;
Slimefun.addHint("ANCIENT_RUNE_SOULBOUND", "&eThrow this onto a dropped item to", "&5bind &ethat item to your soul.", "&eIt is advised for you use this rune", "&eon &6important &eitems.");
}
/* Electricity */

View File

@ -46,7 +46,7 @@ public class SoulboundRune extends SimpleSlimefunItem<ItemDropHandler> {
entity -> entity instanceof Item && !SlimefunManager.isItemSoulbound(((Item) entity).getItemStack()) &&
!SlimefunManager.isItemSimiliar(((Item) entity).getItemStack(), SlimefunItems.RUNE_SOULBOUND, true)
);
if (entites.size() < 1) return;
if (entites.isEmpty()) return;
Entity entity = entites.stream().findFirst().get();
ItemStack ench = ((Item) entity).getItemStack();