Skip to content
Permalink
Browse files

This is how Mojang checks if trees can grow.

Subject to changes.
  • Loading branch information...
wizjany committed Aug 6, 2019
1 parent e25a6d2 commit d822ccc9e53a39a03463ee0cd12b5698c22dbff8
@@ -53,7 +53,7 @@ public boolean apply(BlockVector3 position) throws WorldEditException {
BlockState block = editSession.getBlock(position);
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));
} else if (t.getMaterial().isReplacedDuringPlacement()) {
// since the implementation's tree generators generally don't generate in non-air spots,

0 comments on commit d822ccc

Please sign in to comment.
You can’t perform that action at this time.