Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-09-06 16:12:51 +02:00
This is how Mojang checks if trees can grow.
Subject to changes.
Dieser Commit ist enthalten in:
Ursprung
e25a6d21cd
Commit
d822ccc9e5
@ -53,7 +53,7 @@ public class ForestGenerator implements RegionFunction {
|
|||||||
BlockState block = editSession.getBlock(position);
|
BlockState block = editSession.getBlock(position);
|
||||||
BlockType t = block.getBlockType();
|
BlockType t = block.getBlockType();
|
||||||
|
|
||||||
if (t == BlockTypes.GRASS_BLOCK || t == BlockTypes.DIRT) {
|
if (t == BlockTypes.GRASS_BLOCK || t == BlockTypes.DIRT || t == BlockTypes.PODZOL || t == BlockTypes.COARSE_DIRT) {
|
||||||
return treeType.generate(editSession, position.add(0, 1, 0));
|
return treeType.generate(editSession, position.add(0, 1, 0));
|
||||||
} else if (t.getMaterial().isReplacedDuringPlacement()) {
|
} else if (t.getMaterial().isReplacedDuringPlacement()) {
|
||||||
// since the implementation's tree generators generally don't generate in non-air spots,
|
// since the implementation's tree generators generally don't generate in non-air spots,
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren