Skip to content

Commit

Permalink
ported from forge version
Browse files Browse the repository at this point in the history
Fix a crash when CameraEntity is set to Non-LivingEntity
  • Loading branch information
zlainsama committed Apr 23, 2020
1 parent 692e9a6 commit 117a2ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/lain/mods/cleanview/CleanView.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private void onClientTick(MinecraftClient client)
lastCam = new WeakReference<Entity>(ent);
}

if (ent != null)
if (ent instanceof LivingEntity)
ent.getDataTracker().set(colors, 0);
}

Expand Down

0 comments on commit 117a2ff

Please sign in to comment.