diff options
| author | shedaniel <daniel@shedaniel.me> | 2023-05-29 23:17:20 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2023-05-29 23:17:20 +0800 |
| commit | 1e869aeac83d1627a6cae32a3b53b7d17bd3d7b8 (patch) | |
| tree | 9ff780b6f52c8a6c216698242e8604568dc1df92 /runtime/src/main/java/me/shedaniel/rei/plugin/test | |
| parent | 48ed02b1ed057d2b7502cca575f640a595959cf5 (diff) | |
| download | RoughlyEnoughItems-feature/6.7.tar.gz RoughlyEnoughItems-feature/6.7.tar.bz2 RoughlyEnoughItems-feature/6.7.zip | |
Fix compile errorsfeature/6.7
Diffstat (limited to 'runtime/src/main/java/me/shedaniel/rei/plugin/test')
| -rw-r--r-- | runtime/src/main/java/me/shedaniel/rei/plugin/test/REITestPlugin.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/src/main/java/me/shedaniel/rei/plugin/test/REITestPlugin.java b/runtime/src/main/java/me/shedaniel/rei/plugin/test/REITestPlugin.java index 2b3bfb1fa..03a011a17 100644 --- a/runtime/src/main/java/me/shedaniel/rei/plugin/test/REITestPlugin.java +++ b/runtime/src/main/java/me/shedaniel/rei/plugin/test/REITestPlugin.java @@ -24,7 +24,7 @@ package me.shedaniel.rei.plugin.test; import com.google.common.collect.ImmutableList; -import dev.architectury.event.events.common.CommandRegistrationEvent; +import me.shedaniel.architectury.event.events.CommandRegistrationEvent; import me.shedaniel.rei.api.client.entry.filtering.FilteringRuleTypeRegistry; import me.shedaniel.rei.api.client.entry.filtering.base.BasicFilteringRule; import me.shedaniel.rei.api.client.favorites.FavoriteEntry; @@ -35,6 +35,7 @@ import me.shedaniel.rei.api.client.registry.entry.EntryRegistry; import me.shedaniel.rei.api.common.entry.EntryIngredient; import me.shedaniel.rei.api.common.entry.EntryStack; import me.shedaniel.rei.api.common.entry.comparison.ItemComparatorRegistry; +import me.shedaniel.rei.api.common.entry.type.VanillaEntryTypes; import me.shedaniel.rei.api.common.util.EntryStacks; import me.shedaniel.rei.impl.common.InternalLogger; import net.fabricmc.api.EnvType; @@ -106,7 +107,7 @@ public class REITestPlugin implements REIClientPlugin { if (i++ % 10 != 0) continue; registry.group(Registry.ITEM.getKey(item), new TextComponent(Registry.ITEM.getKey(item).toString()), - stack -> stack.getType() == VanillaEntryTypes.ITEM && stack.<ItemStack>castValue().is(item)); + stack -> stack.getType() == VanillaEntryTypes.ITEM && stack.<ItemStack>castValue().getItem() == item); } } |
