Implement spigotbase's following changes

jeb_'s fix, and maps placed in item frames now fill the whole block.
This commit is contained in:
piebot
2026-03-14 06:02:05 +03:00
parent 2158cce6f1
commit a398941521
7 changed files with 26 additions and 31 deletions
-13
View File
@@ -51,19 +51,6 @@ void SheepFurModel::prepareMobModel(shared_ptr<LivingEntity> mob, float time, fl
headXRot = sheep->getHeadEatAngleScale(a);
wstring name = mob->getAName();
if (name == L"jeb_")
{
int i1 = 25;
int i = mob->tickCount / 25;
int j = Sheep::COLOR_LENGTH;
int k = i % j;
int l = (i + 1) % j;
float f = ((float)(mob->tickCount % 25) + time) / 25.0F;
const float* afloat1 = Sheep::COLOR[k];
const float* afloat2 = Sheep::COLOR[l];
RenderManager.StateSetColour(afloat1[0] * (1.0F - f) + afloat2[0] * f, afloat1[1] * (1.0F - f) + afloat2[1] * f, afloat1[2] * (1.0F - f) + afloat2[2] * f, 1.0f);
}
}
void SheepFurModel::setupAnim(float time, float r, float bob, float yRot, float xRot, float scale, shared_ptr<Entity> entity, unsigned int uiBitmaskOverrideAnim)