mirror of
https://github.com/songoda/EpicFarming.git
synced 2024-10-02 08:37:33 +02:00
Merge branch 'development'
This commit is contained in:
commit
76a52c8a09
@ -4,7 +4,7 @@ stages:
|
|||||||
variables:
|
variables:
|
||||||
name: "EpicFarming"
|
name: "EpicFarming"
|
||||||
path: "/builds/$CI_PROJECT_PATH"
|
path: "/builds/$CI_PROJECT_PATH"
|
||||||
version: "3"
|
version: "3.0.1"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
|
@ -61,8 +61,8 @@ public class ModuleAutoBreeding extends Module {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
boolean mate1 = false;
|
||||||
for (Map.Entry<EntityType, Long> entry : counts.entrySet()) {
|
for (Map.Entry<EntityType, Long> entry : counts.entrySet()) {
|
||||||
boolean mate1 = false;
|
|
||||||
|
|
||||||
for (LivingEntity entity : entities) {
|
for (LivingEntity entity : entities) {
|
||||||
if (entry.getKey() != entity.getType()) continue;
|
if (entry.getKey() != entity.getType()) continue;
|
||||||
@ -107,6 +107,7 @@ public class ModuleAutoBreeding extends Module {
|
|||||||
}
|
}
|
||||||
handleBreed(entity);
|
handleBreed(entity);
|
||||||
mate1 = true;
|
mate1 = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,7 @@ public class ModuleAutoButcher extends Module {
|
|||||||
for (LivingEntity entity : entities) {
|
for (LivingEntity entity : entities) {
|
||||||
int stackSize = EntityStackerManager.getSize(entity);
|
int stackSize = EntityStackerManager.getSize(entity);
|
||||||
if (stackSize == 0) stackSize = 1;
|
if (stackSize == 0) stackSize = 1;
|
||||||
count = stackSize;
|
count += stackSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count <= 2 || !farm.willFit(new ItemStack(Material.STONE))) return;
|
if (count <= 2 || !farm.willFit(new ItemStack(Material.STONE))) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user