mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-11 15:57:31 +00:00
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:
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user