Skip to content

Commit

Permalink
Render local player when the renderViewEntity is not the local player (
Browse files Browse the repository at this point in the history
  • Loading branch information
CreativeMD authored Apr 30, 2024
1 parent d885ec4 commit a6c0af5
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@
this.renderSectionLayer(RenderType.cutout(), p_109600_, d0, d1, d2, p_254120_);
if (this.level.effects().constantAmbientLight()) {
Lighting.setupNetherLevel(p_109600_.last().pose());
@@ -1018,7 +_,7 @@
|| p_109604_.isDetached()
|| p_109604_.getEntity() instanceof LivingEntity && ((LivingEntity)p_109604_.getEntity()).isSleeping()
)
- && (!(entity instanceof LocalPlayer) || p_109604_.getEntity() == entity)) {
+ && (!(entity instanceof LocalPlayer) || p_109604_.getEntity() == entity || (entity == minecraft.player && !minecraft.player.isSpectator()))) { // NEO: render local player entity when it is not the camera entity
++this.renderedEntities;
if (entity.tickCount == 0) {
entity.xOld = entity.getX();
@@ -1034,6 +_,9 @@
int i = entity.getTeamColor();
outlinebuffersource.setColor(FastColor.ARGB32.red(i), FastColor.ARGB32.green(i), FastColor.ARGB32.blue(i), 255);
Expand Down

0 comments on commit a6c0af5

Please sign in to comment.