Fix for 3250 - HashSet<Byte> to HashSet<Material> for getTargetBlock

This commit is contained in:
Erik
2017-08-05 11:50:24 -07:00
parent f1ac5739e4
commit b5f6b1d97f
4 changed files with 7 additions and 7 deletions

View File

@ -305,12 +305,12 @@ public final class BlockUtils {
*
* @return HashSet with the IDs of every transparent block
*/
public static HashSet<Byte> getTransparentBlocks() {
HashSet<Byte> transparentBlocks = new HashSet<Byte>();
public static HashSet<Material> getTransparentBlocks() {
HashSet<Material> transparentBlocks = new HashSet<Material>();
for (Material material : Material.values()) {
if (material.isTransparent()) {
transparentBlocks.add((byte) material.getId());
transparentBlocks.add(material);
}
}