File tree Expand file tree Collapse file tree
1.20.1-forge/src/main/java/net/meatwo310/softdeepslate Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414import net .minecraftforge .registries .tags .ITag ;
1515import net .minecraftforge .registries .tags .ITagManager ;
1616
17+ import java .util .List ;
1718import java .util .Optional ;
1819
1920@ Mod (Constants .MODID )
@@ -56,11 +57,11 @@ public Optional<Block> resolveBlock(ResourceLocation id) {
5657 }
5758
5859 @ Override
59- public Optional <ITag <Block >> resolveTag (ResourceLocation id ) {
60+ public Optional <? extends Iterable <Block >> resolveTag (ResourceLocation id ) {
6061 ITagManager <Block > tagManager = ForgeRegistries .BLOCKS .tags ();
6162 if (tagManager == null ) {
6263 Constants .LOGGER .warn ("Block tag manager is not available: #{}" , id );
63- return Optional .empty ( );
64+ return Optional .of ( List . of () );
6465 }
6566
6667 TagKey <Block > tagKey = tagManager .createTagKey (id );
You can’t perform that action at this time.
0 commit comments