From 348e44fe9ed99420f1ec26c22ed142c9689120b3 Mon Sep 17 00:00:00 2001 From: ChristianF Date: Fri, 13 Mar 2026 15:07:11 +0100 Subject: [PATCH] baby rabbits and craftings incremented vertical slot for crafting table and implemented baby rabbit. SpawnEgg named with Toast works too --- Minecraft.Client/Common/UI/IUIScene_CraftingMenu.h | 2 +- Minecraft.Client/RabbitRenderer.cpp | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Minecraft.Client/Common/UI/IUIScene_CraftingMenu.h b/Minecraft.Client/Common/UI/IUIScene_CraftingMenu.h index 03a58378..9744abec 100644 --- a/Minecraft.Client/Common/UI/IUIScene_CraftingMenu.h +++ b/Minecraft.Client/Common/UI/IUIScene_CraftingMenu.h @@ -22,7 +22,7 @@ protected: static const int m_iMaxHSlotC = 12; static const int m_iMaxHCraftingSlotC = 10; - static const int m_iMaxVSlotC = 17; + static const int m_iMaxVSlotC = 99; static const int m_iMaxDisplayedVSlotC = 3; static const int m_iIngredients3x3SlotC = 9; static const int m_iIngredients2x2SlotC = 4; diff --git a/Minecraft.Client/RabbitRenderer.cpp b/Minecraft.Client/RabbitRenderer.cpp index 7f3d1331..ed1da600 100644 --- a/Minecraft.Client/RabbitRenderer.cpp +++ b/Minecraft.Client/RabbitRenderer.cpp @@ -46,6 +46,13 @@ ResourceLocation *RabbitRenderer::getTextureLocation(shared_ptr entity) void RabbitRenderer::scale(shared_ptr _mob, float a) { - - glScalef(0.65f, 0.65f, 0.65f); + // adult scaling + float s = 0.65f; + + // baby scaling + if (_mob->isBaby()) { + s *= 0.8f; + } + + glScalef(s, s, s); } \ No newline at end of file