Experimental port to 23w06a

Some stuff is still broken, but I managed to implement directional movement in screens
This commit is contained in:
Motschen
2023-02-15 11:11:39 +01:00
parent d48952fec9
commit 1c999137ba
12 changed files with 58 additions and 116 deletions

View File

@@ -67,7 +67,7 @@ public class InputHandlers {
return ItemGroupHelper.sortedGroups.stream()
.filter(itemGroup -> {
if (FabricCreativeGuiComponents.COMMON_GROUPS.contains(itemGroup)) return true;
return ((CreativeGuiExtensions)screen).fabric_currentPage() == ((FabricItemGroup)itemGroup).getPage() && itemGroup.shouldDisplay() && (!itemGroup.equals(ItemGroups.OPERATOR) || ItemGroups.operatorEnabled);
return ((CreativeGuiExtensions)screen).fabric_currentPage() == ((FabricItemGroup)itemGroup).getPage() && itemGroup.shouldDisplay();
}).toList();
}