Permalink
Browse files

Merge pull request #403 from SlimSoftware/master

Fix //snow doesn't put snow on all types of leaves
  • Loading branch information...
me4502 committed Jan 2, 2018
2 parents fbd6f13 + ea333ef commit e231e3d760c7c1ba8d37ef0d32e9431bcb5db0d1
@@ -1656,7 +1656,10 @@ public int simulateSnow(Vector position, double radius) throws MaxChangedBlocksE
// 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?
@@ -1346,6 +1346,7 @@ public static boolean emitsLight(int id) {
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);

0 comments on commit e231e3d

Please sign in to comment.