Prioritize Filter Cubes over Vacuum Cubes. Increase automatic pickup
radius.
This commit is contained in:
parent
7e0b4bddcc
commit
90f12b6848
Binary file not shown.
@ -781,8 +781,8 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (Player p : Bukkit.getOnlinePlayers()) {
|
for (Player p : Bukkit.getOnlinePlayers()) {
|
||||||
runServerHeartbeat.runVacuumCubeSuckup(p);
|
|
||||||
runServerHeartbeat.runFilterCubeCollection(p);
|
runServerHeartbeat.runFilterCubeCollection(p);
|
||||||
|
runServerHeartbeat.runVacuumCubeSuckup(p);
|
||||||
/*if (p.getVehicle() instanceof EnderDragon) {
|
/*if (p.getVehicle() instanceof EnderDragon) {
|
||||||
EnderDragon ed = (EnderDragon)p.getVehicle();
|
EnderDragon ed = (EnderDragon)p.getVehicle();
|
||||||
ed.setVelocity(p.getLocation().getDirection().multiply(2.0f));
|
ed.setVelocity(p.getLocation().getDirection().multiply(2.0f));
|
||||||
|
@ -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.25, 0.25, 0.25);
|
List<Entity> ents = p.getNearbyEntities(0.75, 0.75, 0.75);
|
||||||
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.25 &&
|
if (Math.abs(deltax)<0.75 &&
|
||||||
Math.abs(deltay)<0.25 &&
|
Math.abs(deltay)<0.75 &&
|
||||||
Math.abs(deltaz)<0.25 &&
|
Math.abs(deltaz)<0.75 &&
|
||||||
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