fix(slabs): hide top slab items

Registering the top slab block to the ItemBlock.class
rather than the ItemCarvableSlab.class, prevents the top slab items
to show-up in NEI while maintaining compatibility with existing worlds.
This commit is contained in:
Léa Gris committed 2020-02-25 20:46:04 +01:00
1 parent 194361f92f
commit 8fbcef9f7e
1 file changed
+1 -1
+1 -1
View File
@@ -3104,6 +3104,6 @@ public enum Features {
private static void registerSlabTop(Block bottom, Block top) {
String name = Block.blockRegistry.getNameForObject(bottom);
name = name.substring(name.indexOf(':') + 1) + "_top";
GameRegistry.registerBlock(top, ItemCarvableSlab.class, name);
GameRegistry.registerBlock(top, name);
}
}