mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-07-03 14:37:03 +00:00
baby rabbits and craftings
incremented vertical slot for crafting table and implemented baby rabbit. SpawnEgg named with Toast works too
This commit is contained in:
parent
c1124d2f26
commit
348e44fe9e
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -46,6 +46,13 @@ ResourceLocation *RabbitRenderer::getTextureLocation(shared_ptr<Entity> entity)
|
|||
|
||||
void RabbitRenderer::scale(shared_ptr<LivingEntity> _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);
|
||||
}
|
||||
Loading…
Reference in a new issue