1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

Fix Soulbound Runes not working (#3932)

This commit is contained in:
Violet-Nonbloosom 2023-08-02 05:58:44 +08:00 committed by GitHub
parent 1bdc02283b
commit 16313ef8a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,7 +117,7 @@ public class SoulboundRune extends SimpleSlimefunItem<ItemDropHandler> {
*/
private boolean findCompatibleItem(@Nonnull Entity entity) {
if (entity instanceof Item item) {
return item.getPickupDelay() == 0 && !SlimefunUtils.isSoulbound(item.getItemStack()) && !isItem(item.getItemStack());
return item.getPickupDelay() <= 0 && !SlimefunUtils.isSoulbound(item.getItemStack()) && !isItem(item.getItemStack());
}
return false;