From 66ce0c1e08f639729319332fc45429f024c452ea Mon Sep 17 00:00:00 2001 From: RaphiMC <50594595+RaphiMC@users.noreply.github.com> Date: Mon, 29 Jan 2024 19:35:37 +0100 Subject: [PATCH] Filter classic creative screen items properly --- .../fixes/versioned/classic/GridItemSelectionScreen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/florianmichael/viafabricplus/fixes/versioned/classic/GridItemSelectionScreen.java b/src/main/java/de/florianmichael/viafabricplus/fixes/versioned/classic/GridItemSelectionScreen.java index a8e608e7..1341b542 100644 --- a/src/main/java/de/florianmichael/viafabricplus/fixes/versioned/classic/GridItemSelectionScreen.java +++ b/src/main/java/de/florianmichael/viafabricplus/fixes/versioned/classic/GridItemSelectionScreen.java @@ -57,7 +57,7 @@ public class GridItemSelectionScreen extends VFPScreen { final List allowedItems = new ArrayList<>(); // Calculate all visible items for (Item item : Registries.ITEM) { - if (item == Items.AIR || item.getRequiredFeatures().contains(FeatureFlags.UPDATE_1_21)) continue; + if (item == Items.AIR || !item.getRequiredFeatures().contains(FeatureFlags.VANILLA)) continue; if (ItemRegistryDiff.keepItem(item)) { allowedItems.add(item); }