Merge pull request #403 from SlimSoftware/master

Fix //snow doesn't put snow on all types of leaves
This commit is contained in:
Matthew Miller 2018-01-02 20:34:28 +10:00 committed by GitHub
commit e231e3d760
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -1656,7 +1656,10 @@ public class EditSession implements Extent {
// Snow should not cover these blocks
if (BlockType.isTranslucent(id)) {
break;
// Add snow on leaves
if (id != BlockID.LEAVES && id != BlockID.LEAVES) {
break;
}
}
// Too high?

View File

@ -1346,6 +1346,7 @@ public enum BlockType {
isTranslucent.add(BlockID.BARRIER);
isTranslucent.add(BlockID.IRON_TRAP_DOOR);
isTranslucent.add(BlockID.CARPET);
isTranslucent.add(BlockID.LEAVES2);
isTranslucent.add(BlockID.STAINED_GLASS_PANE);
isTranslucent.add(BlockID.DOUBLE_PLANT);
isTranslucent.add(BlockID.STANDING_BANNER);