Skip to content

Commit

Permalink
Use Denizen's SafeBlock in <m@material.is_solid>
Browse files Browse the repository at this point in the history
  • Loading branch information
Morphan1 committed Dec 29, 2014
1 parent 7ddce28 commit a518e29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/net/aufdemrand/denizen/objects/dMaterial.java
Expand Up @@ -8,6 +8,7 @@

import net.aufdemrand.denizen.objects.properties.Property;
import net.aufdemrand.denizen.objects.properties.PropertyParser;
import net.aufdemrand.denizen.utilities.blocks.SafeBlock;
import net.aufdemrand.denizen.utilities.debugging.dB;
import net.aufdemrand.denizencore.utilities.CoreUtilities;
import org.bukkit.Material;
Expand Down Expand Up @@ -800,7 +801,7 @@ public String getAttribute(Attribute attribute) {
// Returns whether the material is a block that is solid (cannot be walked through).
// -->
if (attribute.startsWith("is_solid"))
return new Element(material.isSolid())
return new Element(SafeBlock.blockIsSafe(material))
.getAttribute(attribute.fulfill(1));

// <--[tag]
Expand Down

0 comments on commit a518e29

Please sign in to comment.