Attempt to fix Java 8 compatibility

This commit is contained in:
Agatha Lovelace 2021-01-09 15:56:16 +02:00
parent ec95a21963
commit c47a724871
No known key found for this signature in database
GPG Key ID: 2DB18BA2E0A80BC3
2 changed files with 4 additions and 3 deletions

View File

@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G
loader_version=0.10.7
# Mod Properties
mod_version = 1.0
mod_version = 1.0.1
maven_group = dev.agatharose
archives_base_name = asbestos

View File

@ -1,6 +1,7 @@
package dev.agatharose.asbestos.item;
import java.util.Set;
import java.util.Arrays;
import java.util.HashSet;
import dev.agatharose.asbestos.Asbestos;
import net.minecraft.item.MiningToolItem;
@ -9,6 +10,6 @@ import net.minecraft.item.ToolMaterial;
public class ScraperItem extends MiningToolItem {
public ScraperItem(ToolMaterial material, float attackDamage, float attackSpeed, Settings settings) {
super(attackDamage, attackSpeed, material, Set.of(Asbestos.ASBESTOS_BLOCK), settings);
super(attackDamage, attackSpeed, material, new HashSet<>(Arrays.asList(Asbestos.ASBESTOS_BLOCK)), settings);
}
}