Add leaves2 to illumination check

This commit is contained in:
Jack Lin 2015-06-10 13:40:25 +12:00
parent 8ceb8a66d4
commit e7516cc414

View file

@ -47,7 +47,7 @@ public class Illumination {
if (standblock.getType() == Material.GLOWSTONE) {
revert();
} else if ((FireStream.isIgnitable(player, standingblock) && standblock
.getType() != Material.LEAVES)
.getType() != Material.LEAVES && standblock.getType() != Material.LEAVES_2)
&& block == null
&& !blocks.containsKey(standblock)) {
block = standingblock;
@ -56,7 +56,7 @@ public class Illumination {
block.setType(Material.TORCH);
blocks.put(block, player);
} else if ((FireStream.isIgnitable(player, standingblock) && standblock
.getType() != Material.LEAVES)
.getType() != Material.LEAVES && standblock.getType() != Material.LEAVES_2)
&& !block.equals(standblock)
&& !blocks.containsKey(standblock) && GeneralMethods.isSolid(standblock)) {
revert();