Tweak 3D Items

This commit is contained in:
TheBrokenRail 2024-10-03 16:22:53 -04:00
parent 3d8525a321
commit d4ab0099f0

View File

@ -322,14 +322,7 @@ static void ItemRenderer_render_injection(ItemRenderer_render_t original, ItemRe
disable_hand_positioning = true;
for (int i = 0; i < count; i++) {
glTranslatef(0, 0, zo);
glPushMatrix();
if (i > 0) {
const float c = (self->random.nextFloat() * 2 - 1) * 0.15f;
const float d = (self->random.nextFloat() * 2 - 1) * 0.15f;
glTranslatef(c, d, 0.0f);
}
EntityRenderer::entityRenderDispatcher->item_renderer->renderItem(nullptr, &item);
glPopMatrix();
}
disable_hand_positioning = false;