Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed Ambigous method call in the new Bukkit API
  • Loading branch information
fernferret committed Mar 5, 2016
1 parent c36f258 commit fd0994f
Showing 1 changed file with 3 additions and 1 deletion.
@@ -1,9 +1,11 @@
package com.lithium3141.OpenWarp.commands;

import java.util.List;
import java.util.Set;

import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
Expand Down Expand Up @@ -56,7 +58,7 @@ public void runCommand(CommandSender sender, List<String> args) {
// Get target block and info
List<Block> blocks = null;
try {
blocks = player.getLastTwoTargetBlocks(null, MAX_VIEW_DISTANCE);
blocks = player.getLastTwoTargetBlocks((Set<Material>) null, MAX_VIEW_DISTANCE);
} catch (IllegalStateException e) {
sender.sendMessage(ChatColor.RED + JUMP_ERROR);
return;
Expand Down

0 comments on commit fd0994f

Please sign in to comment.