From c47a72487105ac5a0dbcc72abaa554054e42e3f2 Mon Sep 17 00:00:00 2001 From: Agatha Rose Date: Sat, 9 Jan 2021 15:56:16 +0200 Subject: [PATCH] Attempt to fix Java 8 compatibility --- gradle.properties | 2 +- src/main/java/dev/agatharose/asbestos/item/ScraperItem.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index e565daa..144eaf5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 diff --git a/src/main/java/dev/agatharose/asbestos/item/ScraperItem.java b/src/main/java/dev/agatharose/asbestos/item/ScraperItem.java index 86fd317..8230450 100644 --- a/src/main/java/dev/agatharose/asbestos/item/ScraperItem.java +++ b/src/main/java/dev/agatharose/asbestos/item/ScraperItem.java @@ -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); } } \ No newline at end of file