Cast null instead of creating a new set.

This commit is contained in:
garbagemule 2015-07-17 04:45:48 +02:00
parent aafeb93d38
commit d3c5535f61

View File

@ -7,13 +7,12 @@ import com.garbagemule.MobArena.commands.Command;
import com.garbagemule.MobArena.commands.CommandInfo;
import com.garbagemule.MobArena.commands.Commands;
import com.garbagemule.MobArena.framework.ArenaMaster;
import com.garbagemule.MobArena.util.config.ConfigUtils;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import java.util.HashSet;
import java.util.Set;
import static com.garbagemule.MobArena.util.config.ConfigUtils.setLocation;
@ -42,7 +41,7 @@ public class ClassChestCommand implements Command {
}
Player p = (Player) sender;
Block b = p.getTargetBlock(new HashSet<Material>(), 10);
Block b = p.getTargetBlock((Set<Material>) null, 10);
switch (b.getType()) {
case CHEST: