Prioritize Filter Cubes over Vacuum Cubes. Increase automatic pickup

radius.
This commit is contained in:
sigonasr2 2017-01-19 20:41:51 -06:00
parent 7e0b4bddcc
commit 90f12b6848
3 changed files with 5 additions and 5 deletions

Binary file not shown.

View File

@ -781,8 +781,8 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
}
}
for (Player p : Bukkit.getOnlinePlayers()) {
runServerHeartbeat.runVacuumCubeSuckup(p);
runServerHeartbeat.runFilterCubeCollection(p);
runServerHeartbeat.runVacuumCubeSuckup(p);
/*if (p.getVehicle() instanceof EnderDragon) {
EnderDragon ed = (EnderDragon)p.getVehicle();
ed.setVelocity(p.getLocation().getDirection().multiply(2.0f));

View File

@ -629,7 +629,7 @@ final class runServerHeartbeat implements Runnable {
public static void runFilterCubeCollection(Player p) {
if (InventoryUtils.hasFullInventory(p) && InventoryUtils.isCarryingFilterCube(p)) {
List<Entity> ents = p.getNearbyEntities(0.25, 0.25, 0.25);
List<Entity> ents = p.getNearbyEntities(0.75, 0.75, 0.75);
int count=0;
for (Entity ent : ents) {
if (ent instanceof Item && GenericFunctions.itemCanBeSuckedUp((Item)ent)) {
@ -693,9 +693,9 @@ final class runServerHeartbeat implements Runnable {
if (deltaz<-0.25) {
zvel=SPD*(Math.min(10, Math.abs(deltaz)));
}
if (Math.abs(deltax)<0.25 &&
Math.abs(deltay)<0.25 &&
Math.abs(deltaz)<0.25 &&
if (Math.abs(deltax)<0.75 &&
Math.abs(deltay)<0.75 &&
Math.abs(deltaz)<0.75 &&
InventoryUtils.hasFullInventory(p) &&
((Item)ent).getPickupDelay()<=0) {
//Collect this item.