Skip to content

Commit

Permalink
Fix ordering of items in creative menus and EMI/REI (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte authored Jul 21, 2024
1 parent 2edab8a commit 5494a5a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main/java/owmii/powah/item/CreativeTabs.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package owmii.powah.item;

import java.util.stream.Collectors;
import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.core.registries.Registries;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceKey;
Expand Down Expand Up @@ -57,13 +56,12 @@ public class CreativeTabs {
output.accept(Itms.URANINITE_RAW.get());
output.accept(Itms.URANINITE.get());

for (var item : BuiltInRegistries.ITEM) {
if (item instanceof ItemBlock<?> powahItem) {
for (var entry : Blcks.DR.getEntries()) {
if (entry.get().asItem() instanceof ItemBlock<?> powahItem) {
if (powahItem.getCreativeTab() == MAIN_KEY) {
output.accept(item);
output.accept(powahItem);
}
}

}
})
.build());
Expand Down

0 comments on commit 5494a5a

Please sign in to comment.