Increase range slightly more.
This commit is contained in:
parent
90f12b6848
commit
09919b5ac8
Binary file not shown.
@ -629,7 +629,7 @@ final class runServerHeartbeat implements Runnable {
|
|||||||
|
|
||||||
public static void runFilterCubeCollection(Player p) {
|
public static void runFilterCubeCollection(Player p) {
|
||||||
if (InventoryUtils.hasFullInventory(p) && InventoryUtils.isCarryingFilterCube(p)) {
|
if (InventoryUtils.hasFullInventory(p) && InventoryUtils.isCarryingFilterCube(p)) {
|
||||||
List<Entity> ents = p.getNearbyEntities(0.75, 0.75, 0.75);
|
List<Entity> ents = p.getNearbyEntities(1, 1, 1);
|
||||||
int count=0;
|
int count=0;
|
||||||
for (Entity ent : ents) {
|
for (Entity ent : ents) {
|
||||||
if (ent instanceof Item && GenericFunctions.itemCanBeSuckedUp((Item)ent)) {
|
if (ent instanceof Item && GenericFunctions.itemCanBeSuckedUp((Item)ent)) {
|
||||||
@ -693,9 +693,9 @@ final class runServerHeartbeat implements Runnable {
|
|||||||
if (deltaz<-0.25) {
|
if (deltaz<-0.25) {
|
||||||
zvel=SPD*(Math.min(10, Math.abs(deltaz)));
|
zvel=SPD*(Math.min(10, Math.abs(deltaz)));
|
||||||
}
|
}
|
||||||
if (Math.abs(deltax)<0.75 &&
|
if (Math.abs(deltax)<=1 &&
|
||||||
Math.abs(deltay)<0.75 &&
|
Math.abs(deltay)<=1 &&
|
||||||
Math.abs(deltaz)<0.75 &&
|
Math.abs(deltaz)<=1 &&
|
||||||
InventoryUtils.hasFullInventory(p) &&
|
InventoryUtils.hasFullInventory(p) &&
|
||||||
((Item)ent).getPickupDelay()<=0) {
|
((Item)ent).getPickupDelay()<=0) {
|
||||||
//Collect this item.
|
//Collect this item.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user