remove useless state check
@@ -142,8 +142,6 @@ public class CameraController
BlockState state = cam.level.getBlockState(cam.blockPosition());
float checkNext = next;
- if(state.hasProperty(SecurityCameraBlock.FACING))
- {
if(checkNext < 0)
checkNext += 360;
@@ -159,7 +157,6 @@ public class CameraController
if(shouldSetRotation)
cam.setYRot(next);
}
- }
public static void zoomIn(SecurityCamera cam)
{
