From 3c0c2609204ebbf18f7293cae25dcb3d6f559477 Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Fri, 25 Mar 2022 22:40:13 -0400 Subject: [PATCH] Add Smooth Stone Slab --- mods/src/creative/creative.cpp | 7 +++++++ symbols/include/symbols/minecraft.h | 1 + 2 files changed, 8 insertions(+) diff --git a/mods/src/creative/creative.cpp b/mods/src/creative/creative.cpp index 35b66427..bd4506bc 100644 --- a/mods/src/creative/creative.cpp +++ b/mods/src/creative/creative.cpp @@ -70,6 +70,13 @@ static int32_t Inventory_setupDefault_FillingContainer_addItem_call_injection(un new_item_instance = (*ItemInstance_constructor_tile_extra)(new_item_instance, *Tile_tallgrass, 1, i); (*FillingContainer_addItem)(filling_container, new_item_instance); } + // Smooth Stone Slab + { + ItemInstance *new_item_instance = new ItemInstance; + ALLOC_CHECK(new_item_instance); + new_item_instance = (*ItemInstance_constructor_tile_extra)(new_item_instance, *Tile_stoneSlab, 1, 6); + (*FillingContainer_addItem)(filling_container, new_item_instance); + } return ret; } diff --git a/symbols/include/symbols/minecraft.h b/symbols/include/symbols/minecraft.h index b42d6d37..1267eef7 100644 --- a/symbols/include/symbols/minecraft.h +++ b/symbols/include/symbols/minecraft.h @@ -44,6 +44,7 @@ static unsigned char **Tile_info_updateGame1 = (unsigned char **) 0x181c68; // T static unsigned char **Tile_info_updateGame2 = (unsigned char **) 0x181c6c; // Tile static unsigned char **Tile_bedrock = (unsigned char **) 0x181cc4; // Tile static unsigned char **Tile_tallgrass = (unsigned char **) 0x181d0c; // Tile +static unsigned char **Tile_stoneSlab = (unsigned char **) 0x181b44; // Tile static unsigned char **Tile_leaves = (unsigned char **) 0x18120c; // Tile static unsigned char **Tile_leaves_carried = (unsigned char **) 0x181dd8; // Tile