Patched an issue with suction preventing items not reaching the ground in time from being picked up.

This commit is contained in:
Brianna O'Keefe 2018-10-06 19:44:07 -04:00
parent 6908cb77c1
commit cdec1ccc07

View File

@ -60,10 +60,10 @@ public class ModuleSuction implements Module {
if (!canMove(hopperBlock.getInventory(), item)) {
continue;
}
((Item) e).setPickupDelay(999);
e.setMetadata("grabbed", new FixedMetadataValue(EpicHoppersPlugin.getInstance(), ""));
if (!e.isOnGround())
continue;
((Item) e).setPickupDelay(10);
e.setMetadata("grabbed", new FixedMetadataValue(EpicHoppersPlugin.getInstance(), ""));
float xx = (float) (0 + (Math.random() * .3));
float yy = (float) (0 + (Math.random() * .3));
float zz = (float) (0 + (Math.random() * .3));