Merge branch 1.11-dev into 1.11.2-dev
caf6051Merge branch 1.9.4-dev into 1.11-dev263e080Merge branch 1.8.9-dev into 1.9.4-dev8fad02cMerge branch 1.8-dev into 1.8.9-dev1c888aaAdd minVersion to mixin configs and bump bundled mixin version10ce71eFix mapwriter crash when opening replay for <MC1.12 (fixes #96)5fb1cf3Fix half-despawned player entities (see #93) when the entity is moved greater distancesadfe6a2Fix NPE when spectated non-player entity despawns (fixes #94)b27af27Fix player entities being half-despawned after jumping in time (fixes #93)
This commit is contained in:
@@ -160,6 +160,11 @@ public class CameraEntity extends EntityPlayerSP {
|
||||
if (spectating != null && (view.getUniqueID() != spectating
|
||||
|| view.world != world)
|
||||
|| world.getEntityByID(view.getEntityId()) != view) {
|
||||
if (spectating == null) {
|
||||
// Entity (non-player) died, stop spectating
|
||||
ReplayModReplay.instance.getReplayHandler().spectateEntity(this);
|
||||
return;
|
||||
}
|
||||
view = world.getPlayerEntityByUUID(spectating);
|
||||
if (view != null) {
|
||||
mc.setRenderViewEntity(view);
|
||||
|
||||
Reference in New Issue
Block a user