Attempt to fix Java 8 compatibility
This commit is contained in:
parent
ec95a21963
commit
c47a724871
|
@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G
|
||||||
loader_version=0.10.7
|
loader_version=0.10.7
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 1.0
|
mod_version = 1.0.1
|
||||||
maven_group = dev.agatharose
|
maven_group = dev.agatharose
|
||||||
archives_base_name = asbestos
|
archives_base_name = asbestos
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package dev.agatharose.asbestos.item;
|
package dev.agatharose.asbestos.item;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Arrays;
|
||||||
|
import java.util.HashSet;
|
||||||
|
|
||||||
import dev.agatharose.asbestos.Asbestos;
|
import dev.agatharose.asbestos.Asbestos;
|
||||||
import net.minecraft.item.MiningToolItem;
|
import net.minecraft.item.MiningToolItem;
|
||||||
|
@ -9,6 +10,6 @@ import net.minecraft.item.ToolMaterial;
|
||||||
public class ScraperItem extends MiningToolItem {
|
public class ScraperItem extends MiningToolItem {
|
||||||
|
|
||||||
public ScraperItem(ToolMaterial material, float attackDamage, float attackSpeed, Settings settings) {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue