implement swing arm animation and entity brightness

(cherry picked from commit b9e76a3d9bd1c0c89f1ffde1a3516ff115cf3235)
This commit is contained in:
LabyStudio
2022-04-14 18:36:06 +02:00
parent 62d7ba24b9
commit 96b287bedc
14 changed files with 147 additions and 48 deletions
@@ -92,6 +92,8 @@ window.WorldRenderer = class {
// Render entities
for (let entity of this.minecraft.world.entities) {
if (entity === player && this.minecraft.settings.thirdPersonView === 0) {
entity.group.clear();
entity.lastRenderedBrightness = -1; // TODO: Find a better way to trigger this
continue;
}
this.renderEntity(entity, partialTicks);