mirror of
https://github.com/songoda/EpicBuckets.git
synced 2024-11-26 04:05:55 +01:00
Fixed Infused downwards gen
This commit is contained in:
parent
96bebe5409
commit
d577a3c3c9
@ -25,31 +25,31 @@ public class Infused extends Genbucket {
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
if (isGravityGen()) {
|
if (isGravityGen()) {
|
||||||
if (!side1 && !side2) {
|
if (!side1 && !side2) {
|
||||||
|
epicBuckets.getGenbucketManager().unregisterGenbucketForPlayer(getOwner(), getGenUUID());
|
||||||
|
cancel();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (side1 && !gravityGenInfused(blocksPlaced, getBlockFace())) {
|
||||||
|
side1 = false;
|
||||||
|
}
|
||||||
|
if (side2 && !gravityGenInfused(blocksPlaced, getBlockFace().getOppositeFace())) {
|
||||||
|
side2 = false;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if ((!side1 && !side2) || blocksPlaced >= epicBuckets.getConfigManager().getMaxVerticalHeight()) {
|
||||||
epicBuckets.getGenbucketManager().unregisterGenbucketForPlayer(getOwner(), getGenUUID());
|
epicBuckets.getGenbucketManager().unregisterGenbucketForPlayer(getOwner(), getGenUUID());
|
||||||
cancel();
|
cancel();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (side1 && !gravityGenInfused(blocksPlaced, getBlockFace())) {
|
if (side1 && !placeGen(getNextBlock(blocksPlaced, getBlockFace()))) {
|
||||||
side1 = false;
|
side1 = false;
|
||||||
}
|
}
|
||||||
if (side2 && !gravityGenInfused(blocksPlaced, getBlockFace().getOppositeFace())) {
|
if (side2 && !placeGen(getNextBlock(blocksPlaced, getBlockFace().getOppositeFace()))) {
|
||||||
side2 = false;
|
side2 = false;
|
||||||
}
|
}
|
||||||
|
blocksPlaced++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((!side1 && !side2) || blocksPlaced >= epicBuckets.getConfigManager().getMaxVerticalHeight()) {
|
|
||||||
epicBuckets.getGenbucketManager().unregisterGenbucketForPlayer(getOwner(), getGenUUID());
|
|
||||||
cancel();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (side1 && !placeGen(getNextBlock(blocksPlaced, getBlockFace()))) {
|
|
||||||
side1 = false;
|
|
||||||
}
|
|
||||||
if (side2 && !placeGen(getNextBlock(blocksPlaced, getBlockFace().getOppositeFace()))) {
|
|
||||||
side2 = false;
|
|
||||||
}
|
|
||||||
blocksPlaced++;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
setGeneration(runnable.runTaskTimer(EpicBuckets.getInstance(), 0, epicBuckets.getConfigManager().getDelay()));
|
setGeneration(runnable.runTaskTimer(EpicBuckets.getInstance(), 0, epicBuckets.getConfigManager().getDelay()));
|
||||||
|
Loading…
Reference in New Issue
Block a user