Add 1.7.10 version
This commit is contained in:
@@ -10,6 +10,8 @@ import org.lwjgl.input.Mouse;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import static com.replaymod.core.versions.MCVer.*;
|
||||
|
||||
@RequiredArgsConstructor
|
||||
public class SpectatorCameraController implements CameraController {
|
||||
private final CameraEntity camera;
|
||||
@@ -34,9 +36,9 @@ public class SpectatorCameraController implements CameraController {
|
||||
// Always make sure the camera is in the exact same spot as the spectated entity
|
||||
// This is necessary as some rendering code for the hand doesn't respect the view entity
|
||||
// and always uses mc.thePlayer
|
||||
Entity view = mc.getRenderViewEntity();
|
||||
Entity view = getRenderViewEntity(mc);
|
||||
if (view != null && view != camera) {
|
||||
camera.setCameraPosRot(mc.getRenderViewEntity());
|
||||
camera.setCameraPosRot(getRenderViewEntity(mc));
|
||||
// If it's a player, also 'steal' its inventory so the rendering code knows what item to render
|
||||
if (view instanceof EntityPlayer) {
|
||||
EntityPlayer viewPlayer = (EntityPlayer) view;
|
||||
|
||||
Reference in New Issue
Block a user