Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
FalsePattern committed Feb 7, 2025
1 parent 3d408bb commit 00b8f7c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/java/minetweaker/api/item/ToolMaterial.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import minetweaker.api.minecraft.MineTweakerMC;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import org.jetbrains.annotations.NotNull;
import stanhebben.zenscript.annotations.ZenClass;
import stanhebben.zenscript.annotations.ZenMethod;

Expand All @@ -18,7 +17,7 @@
@RequiredArgsConstructor
public class ToolMaterial {
@ZenMethod
public static void replaceMaterialRepairItem(@NotNull String materialName, @NotNull IIngredient itemStack) {
public static void replaceMaterialRepairItem(String materialName, IIngredient itemStack) {
for (val material: Item.ToolMaterial.values()) {
if (materialName.equals(material.name())) {
MineTweakerAPI.apply(new ApplyMaterialAction(material, MineTweakerMC.getItemStack(itemStack)));
Expand All @@ -29,8 +28,10 @@ public static void replaceMaterialRepairItem(@NotNull String materialName, @NotN
}

@ZenMethod
public static void printMCMaterialsToConsole() {

public static void printMCMaterialsToLog() {
for (val material: Item.ToolMaterial.values()) {
MineTweakerAPI.logInfo("[TOOL MATERIAL] " + material.name());
}
}

@RequiredArgsConstructor
Expand Down

0 comments on commit 00b8f7c

Please sign in to comment.