File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
legacy-fabric-block-api-v1
1.12.2/src/main/java/net/legacyfabric/fabric/impl/block/versioned
1.7.10/src/main/java/net/legacyfabric/fabric/impl/block/versioned Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ legacy-fabric-permissions-api-v1.version = 1.1.2
2121legacy-fabric-registry-sync-api-v1.version = 3.0.1
2222legacy-fabric-registry-sync-api-v2.version = 1.0.1
2323legacy-fabric-item-api-v1.version = 1.0.1
24- legacy-fabric-block-api-v1.version = 1.0.1
24+ legacy-fabric-block-api-v1.version = 1.0.2
2525legacy-fabric-block-entity-api-v1.version = 1.0.1
2626legacy-fabric-rendering-api-v1.version = 1.0.1
2727legacy-fabric-resource-loader-v1.version = 2.3.1
Original file line number Diff line number Diff line change @@ -63,8 +63,8 @@ private static void blockRegistryInit(FabricRegistry<?> holder) {
6363 boolean useNeighbourLight = false ;
6464 boolean isStairs = block instanceof StairsBlock ;
6565 boolean isSlab = block instanceof SlabBlock ;
66- boolean isMissingTop = block == RegistryHelper .getValue (Item .REGISTRY , new Identifier ("farmland" ))
67- || (checkGrass && block == RegistryHelper .getValue (Item .REGISTRY , new Identifier ("grass_path" )));
66+ boolean isMissingTop = block == RegistryHelper .getValue (Block .REGISTRY , new Identifier ("farmland" ))
67+ || (checkGrass && block == RegistryHelper .getValue (Block .REGISTRY , new Identifier ("grass_path" )));
6868 boolean isTranslucent = block .translucent ;
6969 boolean isNotOpaque = block .opacity == 0 ;
7070
Original file line number Diff line number Diff line change 2020import net .minecraft .block .Block ;
2121import net .minecraft .block .SlabBlock ;
2222import net .minecraft .block .material .Material ;
23- import net .minecraft .item .Item ;
2423
2524import net .fabricmc .loader .api .entrypoint .PreLaunchEntrypoint ;
2625
@@ -47,7 +46,7 @@ private static void blockRegistryInit(FabricRegistry<?> holder) {
4746 boolean useNeighbourLight = false ;
4847 boolean isStairs = block .getBlockType () == 10 ;
4948 boolean isSlab = block instanceof SlabBlock ;
50- boolean isMissingTop = block == RegistryHelper .getValue (Item .REGISTRY , new Identifier ("farmland" ));
49+ boolean isMissingTop = block == RegistryHelper .getValue (Block .REGISTRY , new Identifier ("farmland" ));
5150 boolean isTranslucent = block .translucent ;
5251 boolean isNotOpaque = block .getOpacity () == 0 ;
5352
You can’t perform that action at this time.
0 commit comments