Skip to content

Commit

Permalink
Fix TerrainControl tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Morphan1 committed Aug 16, 2016
1 parent 7e42d71 commit c1a9ddd
Showing 1 changed file with 3 additions and 3 deletions.
@@ -1,5 +1,6 @@
package net.gnomeffinway.depenizen.extensions.terraincontrol;

import com.khorn.terraincontrol.LocalBiome;
import com.khorn.terraincontrol.TerrainControl;
import net.aufdemrand.denizen.objects.dLocation;
import net.aufdemrand.denizencore.objects.Element;
Expand Down Expand Up @@ -39,9 +40,8 @@ public String getAttribute(Attribute attribute) {
// @plugin Depenizen, TerrainControl
// -->
if (attribute.startsWith("tc_biome.name")) {
String biome = TerrainControl.getBiomeName(location.getWorld().getName(),
location.getBlockX(), location.getBlockZ());
return new Element(biome).getAttribute(attribute.fulfill(2));
LocalBiome biome = TerrainControl.getWorld(location.getWorld().getName()).getBiome(location.getBlockX(), location.getBlockZ());
return new Element(biome.getName()).getAttribute(attribute.fulfill(2));
}

return null;
Expand Down

0 comments on commit c1a9ddd

Please sign in to comment.