1
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:
dniym 2022-08-20 13:31:29 -04:00 committed by GitHub
parent 447e81f573
commit 80aaeebb59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;