This commit is contained in:
eaglercraft 2024-03-02 22:18:18 -08:00
commit 573420e1b8
613 changed files with 5708 additions and 4445 deletions

View file

@ -93,8 +93,9 @@ public abstract class BlockWoodSlab extends BlockSlab {
*/
public void getSubBlocks(Item item, CreativeTabs var2, List<ItemStack> list) {
if (item != Item.getItemFromBlock(Blocks.double_wooden_slab)) {
for (BlockPlanks.EnumType blockplanks$enumtype : BlockPlanks.EnumType.values()) {
list.add(new ItemStack(item, 1, blockplanks$enumtype.getMetadata()));
BlockPlanks.EnumType[] types = BlockPlanks.EnumType.META_LOOKUP;
for (int i = 0; i < types.length; ++i) {
list.add(new ItemStack(item, 1, types[i].getMetadata()));
}
}