From 117a2ff44d26fe6e75a0c10e262389a8279b63e0 Mon Sep 17 00:00:00 2001 From: Lain MultipleInstances Date: Fri, 24 Apr 2020 03:39:34 +0800 Subject: [PATCH] ported from forge version Fix a crash when CameraEntity is set to Non-LivingEntity --- src/main/java/lain/mods/cleanview/CleanView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/lain/mods/cleanview/CleanView.java b/src/main/java/lain/mods/cleanview/CleanView.java index 30aef1d..b835c2e 100644 --- a/src/main/java/lain/mods/cleanview/CleanView.java +++ b/src/main/java/lain/mods/cleanview/CleanView.java @@ -45,7 +45,7 @@ private void onClientTick(MinecraftClient client) lastCam = new WeakReference(ent); } - if (ent != null) + if (ent instanceof LivingEntity) ent.getDataTracker().set(colors, 0); }