3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-25 10:30:04 +01:00

Fixed FloatingTreeRemover (/tool deltree) to work correctly with jungle trees

Dieser Commit ist enthalten in:
zml2008 2012-03-17 15:09:37 -07:00
Ursprung 2fbaa5a29f
Commit ba1d2c751b

Datei anzeigen

@ -54,6 +54,7 @@ public class FloatingTreeRemover implements BlockTool {
case BlockID.LEAVES:
case BlockID.BROWN_MUSHROOM_CAP:
case BlockID.RED_MUSHROOM_CAP:
case BlockID.VINE:
break;
default:
@ -77,6 +78,7 @@ public class FloatingTreeRemover implements BlockTool {
case BlockID.LEAVES:
case BlockID.BROWN_MUSHROOM_CAP:
case BlockID.RED_MUSHROOM_CAP:
case BlockID.VINE:
editSession.setBlock(blockVector, AIR);
}
}
@ -132,13 +134,15 @@ public class FloatingTreeRemover implements BlockTool {
case BlockID.LEAVES:
case BlockID.BROWN_MUSHROOM_CAP:
case BlockID.RED_MUSHROOM_CAP:
case BlockID.VINE:
// queue next point
queue.addLast(next);
break;
default:
// we hit something solid - evaluate where we came from
if (world.getBlockType(current) == BlockID.LEAVES) {
final int curId = world.getBlockType(current);
if (curId == BlockID.LEAVES || curId == BlockID.VINE) {
// leaves touching a wall/the ground => stop walking this route
continue;
} else {