Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 8151578

Browse files
authored
Fix ItemGroups not working in dev (sister: [Patcher/#51](PatchworkMC/patchwork-patcher#51)) (#92)
1 parent 3e8f584 commit 8151578

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

patchwork-dispatcher/src/main/java/net/patchworkmc/api/redirects/itemgroup/PatchworkItemGroup.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
package net.patchworkmc.api.redirects.itemgroup;
2121

2222
import net.minecraft.item.ItemGroup;
23+
import net.minecraft.item.ItemStack;
2324
import net.minecraft.util.Identifier;
2425

2526
import net.fabricmc.fabric.api.client.itemgroup.FabricItemGroupBuilder;
@@ -45,11 +46,11 @@ private static int getNewArrayIndex() {
4546
return GROUPS.length - 1;
4647
}
4748

48-
/*// Note: uncomment this in dev
49-
public net.minecraft.item.ItemStack createIcon() {
50-
return method_7750();
49+
@Override
50+
public ItemStack createIcon() {
51+
return patchwork$createIcon();
5152
}
5253

53-
// TODO: Missing required classpath information in remapper!
54-
public abstract net.minecraft.item.ItemStack method_7750();*/
54+
// TODO: when remapping in dev this fails (something about classpath context), so we get around it by adding another redirect
55+
public abstract ItemStack patchwork$createIcon();
5556
}

0 commit comments

Comments
 (0)