Skip to content

Commit

Permalink
Probably fix the mineco build
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Feb 18, 2015
1 parent f8b2625 commit dd417de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
4 changes: 3 additions & 1 deletion src/main/java/net/aufdemrand/denizen/objects/dEntity.java
Expand Up @@ -41,6 +41,7 @@
import org.bukkit.util.Vector;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.UUID;
import java.util.regex.Matcher;
Expand Down Expand Up @@ -1537,7 +1538,8 @@ else if (mtr.angle == BlockFace.EAST) {
if (attribute.startsWith("location.cursor_on")) {
int range = attribute.getIntContext(2);
if (range < 1) range = 50;
return new dLocation(getLivingEntity().getTargetBlock(null, range).getLocation().clone())
HashSet<Byte> set = new HashSet<Byte>();
return new dLocation(getLivingEntity().getTargetBlock(set, range).getLocation().clone())
.getAttribute(attribute.fulfill(2));
}

Expand Down
Expand Up @@ -196,16 +196,6 @@ else if (sender instanceof BlockCommandSender)
return location;
}

public Location getSenderTargetBlockLocation() {
if (sender == null)
return location;
if (sender instanceof Player)
location = ((Player) sender).getTargetBlock(null, 50).getLocation();
else if (sender instanceof BlockCommandSender)
location = ((BlockCommandSender) sender).getBlock().getLocation();
return location;
}

public String[] getSlice(int index) {
String[] slice = new String[args.length - index];
System.arraycopy(args, index, slice, 0, args.length - index);
Expand Down

0 comments on commit dd417de

Please sign in to comment.