Merge pull request #1139 from MauveCloud/mangrove-fix

Added bitmask before checking block below sapling
This commit is contained in:
Adubbz 2017-11-13 11:04:54 +11:00 committed by GitHub
commit fc7f1f6392
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ public class BlockBOPColorizedSapling extends BlockSapling
{
Block block = world.getBlock(x, y - 1, z);
switch (metadata)
switch (metadata & 7)
{
case 1: // Mangrove
return block == Blocks.sand;