From 8fbcef9f7ef28c77a37afed6892d06ed7c885229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Gris?= Date: Tue, 25 Feb 2020 20:46:04 +0100 Subject: [PATCH] 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. --- src/main/java/team/chisel/Features.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/team/chisel/Features.java b/src/main/java/team/chisel/Features.java index e4216347..aacec82c 100644 --- a/src/main/java/team/chisel/Features.java +++ b/src/main/java/team/chisel/Features.java @@ -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); } }