mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Add leaves2 to illumination check
This commit is contained in:
parent
8ceb8a66d4
commit
e7516cc414
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue