mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Merge pull request #403 from SlimSoftware/master
Fix //snow doesn't put snow on all types of leaves
This commit is contained in:
commit
e231e3d760
@ -1656,8 +1656,11 @@ public class EditSession implements Extent {
|
|||||||
|
|
||||||
// Snow should not cover these blocks
|
// Snow should not cover these blocks
|
||||||
if (BlockType.isTranslucent(id)) {
|
if (BlockType.isTranslucent(id)) {
|
||||||
|
// Add snow on leaves
|
||||||
|
if (id != BlockID.LEAVES && id != BlockID.LEAVES) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Too high?
|
// Too high?
|
||||||
if (y == world.getMaxY()) {
|
if (y == world.getMaxY()) {
|
||||||
|
@ -1346,6 +1346,7 @@ public enum BlockType {
|
|||||||
isTranslucent.add(BlockID.BARRIER);
|
isTranslucent.add(BlockID.BARRIER);
|
||||||
isTranslucent.add(BlockID.IRON_TRAP_DOOR);
|
isTranslucent.add(BlockID.IRON_TRAP_DOOR);
|
||||||
isTranslucent.add(BlockID.CARPET);
|
isTranslucent.add(BlockID.CARPET);
|
||||||
|
isTranslucent.add(BlockID.LEAVES2);
|
||||||
isTranslucent.add(BlockID.STAINED_GLASS_PANE);
|
isTranslucent.add(BlockID.STAINED_GLASS_PANE);
|
||||||
isTranslucent.add(BlockID.DOUBLE_PLANT);
|
isTranslucent.add(BlockID.DOUBLE_PLANT);
|
||||||
isTranslucent.add(BlockID.STANDING_BANNER);
|
isTranslucent.add(BlockID.STANDING_BANNER);
|
||||||
|
Loading…
Reference in New Issue
Block a user