mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-09-28 23:57:28 +02:00
Patched an issue with suction preventing items not reaching the ground in time from being picked up.
This commit is contained in:
parent
6908cb77c1
commit
cdec1ccc07
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user