mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Update SoulboundRune.java
Make sure a soulbound rune will not pick up an item that a player could not pick up, eg one that has a pickup delay.
This commit is contained in:
parent
447e81f573
commit
80aaeebb59
@ -118,7 +118,7 @@ public class SoulboundRune extends SimpleSlimefunItem<ItemDropHandler> {
|
||||
if (entity instanceof Item) {
|
||||
Item item = (Item) entity;
|
||||
|
||||
return !SlimefunUtils.isSoulbound(item.getItemStack()) && !isItem(item.getItemStack());
|
||||
return item.getPickupDelay == 0 && !SlimefunUtils.isSoulbound(item.getItemStack()) && !isItem(item.getItemStack());
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user