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:
parent
ff368bdf56
commit
485fc1aa69
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user