public class CameraPositionHandler {
public static CameraPositionHandler INSTANCE = new CameraPositionHandler();
private float getShakeStrength(float delta) {
float screenShake = 0.0F;
World world = Minecraft.getMinecraft().theWorld;
<BUG>Entity renderViewEntity = Minecraft.getMinecraft().getRenderViewEntity();
for(Entity entity : (List<Entity>) world.loadedEntityList) {</BUG>
if(entity instanceof IEntityScreenShake) {
IEntityScreenShake shake = (IEntityScreenShake) entity;
<BUG>screenShake += shake.getShakeIntensity(renderViewEntity, delta);
}</BUG>
}

public class CameraPositionHandler {
public static CameraPositionHandler INSTANCE = new CameraPositionHandler();
private float getShakeStrength(float delta) {
float screenShake = 0.0F;
World world = Minecraft.getMinecraft().theWorld;
Entity renderViewEntity = Minecraft.getMinecraft().getRenderViewEntity();
if(renderViewEntity != null) {
for(Entity entity : (List<Entity>) world.loadedEntityList) {
if(entity instanceof IEntityScreenShake) {
IEntityScreenShake shake = (IEntityScreenShake) entity;
screenShake += shake.getShakeIntensity(renderViewEntity, delta);
}
}
}
