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

Update src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/magical/InfusedHopper.java

Co-authored-by: TheBusyBiscuit <TheBusyBiscuit@users.noreply.github.com>
This commit is contained in:
Daniel Walsh 2021-01-16 10:39:05 +00:00 committed by GitHub
parent ff368bdf56
commit 485fc1aa69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,7 +104,7 @@ public class InfusedHopper extends SimpleSlimefunItem<BlockTicker> {
if (entity instanceof Item && entity.isValid()) {
Item item = (Item) entity;
// Check if the item cannot be picked up or has the "no pickup" metadata
return item.getPickupDelay() != Short.MAX_VALUE
return item.getPickupDelay() <= 0
&& !SlimefunUtils.hasNoPickupFlag(item)
&& item.getLocation().distanceSquared(l) > 0.25;
}